2019-03-18 13:05:46 -05:00
|
|
|
<nav class="post-navigation">
|
|
|
|
|
<?php if ($prevPost = $post->getPrevPost()): ?>
|
|
|
|
|
<a
|
|
|
|
|
href="<?php echo $prevPost->getRelativeUrl() ?>"
|
|
|
|
|
title="Read '<?php echo htmlentities($prevPost->getTitle()) ?>'"
|
|
|
|
|
>← <?php echo htmlentities($prevPost->getTitle()) ?></a>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
<?php if ($nextPost = $post->getNextPost()): ?>
|
|
|
|
|
<a
|
|
|
|
|
href="<?php echo $nextPost->getRelativeUrl() ?>"
|
|
|
|
|
title="Read '<?php echo htmlentities($nextPost->getTitle()) ?>'"
|
|
|
|
|
><?php echo htmlentities($nextPost->getTitle()) ?> →</a>
|
|
|
|
|
<?php endif ?>
|
2016-07-11 22:21:24 -04:00
|
|
|
</nav>
|