first version
This commit is contained in:
29
site/templates/home.php
Executable file
29
site/templates/home.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<main>
|
||||
<header class="intro">
|
||||
<h1><?= $site->title() ?></h1>
|
||||
</header>
|
||||
|
||||
<ul class="grid">
|
||||
<?php foreach (page('photography')->children()->listed() as $album): ?>
|
||||
<li>
|
||||
<a href="<?= $album->url() ?>">
|
||||
<figure>
|
||||
<?php if ($cover = $album->cover()): ?>
|
||||
<?= $cover->resize(1024, 1024) ?>
|
||||
<?php endif ?>
|
||||
<figcaption>
|
||||
<span>
|
||||
<span class="example-name"><?= $album->title() ?></span>
|
||||
</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
Reference in New Issue
Block a user