first version
This commit is contained in:
23
site/templates/notes.php
Executable file
23
site/templates/notes.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<main>
|
||||
<header class="intro">
|
||||
<h1><?= $page->title() ?></h1>
|
||||
</header>
|
||||
|
||||
<div class="notes">
|
||||
<?php foreach ($page->children()->listed()->sortBy('date', 'desc') as $note): ?>
|
||||
<article class="note">
|
||||
<header class="note-header">
|
||||
<a href="<?= $note->url() ?>">
|
||||
<h2><?= $note->title() ?></h2>
|
||||
<time><?= $note->date()->toDate('d F Y') ?></time>
|
||||
</a>
|
||||
</header>
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
Reference in New Issue
Block a user