Pequenio/php/page.php

18 lines
809 B
PHP
Raw Normal View History

2017-11-08 23:12:58 +01:00
<!-- Section -->
<section class="content">
<article class="page">
<header>
<a href="<?php echo $page->permalink() ?>">
<h2><?php echo $page->title() ?></h2>
</a>
2018-09-08 18:26:20 +02:00
<?php if($page->coverImage()): ?>
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug() ?>">
<?php endif ?>
2017-11-08 23:12:58 +01:00
</header>
<?php echo $page->content() ?>
<footer>
2018-09-08 18:26:20 +02:00
<div class="date"><?php echo $page->date() ?></div>
2017-11-08 23:12:58 +01:00
</footer>
</article>
</section>