mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 17:52:41 +01:00
26 lines
818 B
PHP
Executable File
26 lines
818 B
PHP
Executable File
<?= $this->layout('site') ?>
|
|
<?php if ($page->content()): ?>
|
|
<aside>
|
|
<div class="container">
|
|
<?= $page->content() ?>
|
|
</div>
|
|
</aside>
|
|
<?php endif; ?>
|
|
<main>
|
|
<div class="container">
|
|
<?php foreach ($posts as $post): ?>
|
|
<article>
|
|
<h1 class="article-title"><a href="<?= $post->uri() ?>"><?= $post->title() ?></a></h1>
|
|
<?= $this->insert('_tags', array('post' => $post, 'blog' => $page)) ?>
|
|
<?php if ($post->summary()): ?>
|
|
<?= $post->summary() ?>
|
|
<a class="read-more" href="<?= $post->uri() ?>" rel="bookmark">Read more →</a>
|
|
<?php else: ?>
|
|
<?= $post->content() ?>
|
|
<?php endif; ?>
|
|
</article>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</main>
|
|
<?= $this->insert('_pagination') ?>
|