✨ Rewrite for Kirby
This commit is contained in:
parent
07201d05de
commit
f854d60108
116 changed files with 4156 additions and 8875 deletions
27
site/templates/blog.php
Normal file
27
site/templates/blog.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php snippet('layout', slots: true) ?>
|
||||
<?php slot() ?>
|
||||
<h1><?= $page->title() ?></h1>
|
||||
|
||||
<?= $page->text()->kirbytext() ?>
|
||||
|
||||
<?php foreach($articles as $article): ?>
|
||||
<?php snippet('article', ['article' => $article]) ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php if ($articles->pagination()->hasPages()): ?>
|
||||
<nav class="pagination">
|
||||
<?php if ($articles->pagination()->hasNextPage()): ?>
|
||||
<a class="page-item next" href="<?= $articles->pagination()->nextPageURL() ?>">
|
||||
‹ older posts
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($articles->pagination()->hasPrevPage()): ?>
|
||||
<a class="page-item prev" href="<?= $articles->pagination()->prevPageURL() ?>">
|
||||
newer posts ›
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endslot() ?>
|
Loading…
Add table
Add a link
Reference in a new issue