first version
This commit is contained in:
16
site/snippets/footer.php
Executable file
16
site/snippets/footer.php
Executable file
@@ -0,0 +1,16 @@
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<a href="<?= url() ?>">© <?= date('Y') ?> / <?= $site->title() ?></a>
|
||||
|
||||
<?php if ($about = page('about')): ?>
|
||||
<nav class="social">
|
||||
<?php foreach ($about->social()->toStructure() as $social): ?>
|
||||
<a href="<?= $social->url() ?>"><?= $social->platform() ?></a>
|
||||
<?php endforeach ?>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
9
site/snippets/gallery.php
Executable file
9
site/snippets/gallery.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<section class="gallery">
|
||||
<?php foreach ($gallery->images() as $image): ?>
|
||||
<figure>
|
||||
<a href="<?= $image->link()->or($image->url()) ?>">
|
||||
<?= $image->crop(600, 800) ?>
|
||||
</a>
|
||||
</figure>
|
||||
<?php endforeach ?>
|
||||
</section>
|
25
site/snippets/header.php
Executable file
25
site/snippets/header.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
<title><?= $site->title() ?> | <?= $page->title() ?></title>
|
||||
|
||||
<?= css(['assets/css/index.css', '@auto']) ?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="page">
|
||||
<header class="header">
|
||||
<a class="logo" href="<?= $site->url() ?>"><?= $site->title() ?></a>
|
||||
|
||||
<nav id="menu" class="menu">
|
||||
<?php foreach ($site->children()->listed() as $item): ?>
|
||||
<?= $item->title()->link() ?>
|
||||
<?php endforeach ?>
|
||||
</nav>
|
||||
</header>
|
||||
|
3
site/snippets/intro.php
Executable file
3
site/snippets/intro.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<header class="intro">
|
||||
<h1><?= $page->title() ?></h1>
|
||||
</header>
|
Reference in New Issue
Block a user