mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 17:24:38 +01:00
26 lines
813 B
PHP
26 lines
813 B
PHP
<?= $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', ['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') ?>
|