Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="nav prevnext">
<? if($page->hasPrevVisible()): ?>
<a class="prev" href="<?= $page->prevVisible()->url() ?>">&lsaquo; previous article (<?php echo html($page->prevVisible()->title()) ?>)</a>
<? endif ?>
<? if($page->hasNextVisible()): ?>
<a class="next" href="<?= $page->nextVisible()->url() ?>">next article &rsaquo; (<?php echo html($page->nextVisible()->title()) ?>)</a>
<? endif ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.