Skip to content

Commit

Permalink
Added post navigator
Browse files Browse the repository at this point in the history
JBake 2.6.0 should support this rednering
  • Loading branch information
manikmagar committed May 21, 2017
1 parent e6c4f98 commit 001461e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/post.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
<#if (post??) >
<#include "post/content-single.ftl">
</#if>

<#include "commons/disqus.ftl">

<#include "post/prev-next-post.ftl">

<#include "commons/disqus.ftl">
</div>




<#include "commons/sidebar.ftl">
<#include "footer.ftl">
12 changes: 12 additions & 0 deletions templates/post/prev-next-post.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<ul class="actions pagination">

<#if (post.previousContent)??>
<li><a href="${content.rootpath}${post.previousContent.noExtensionUri!post.previousContent.uri}"
class="button big previous">${content.previousContent.title}</a></li>
</#if>
<#if (post.nextContent)??>
<li><a href="${content.rootpath}${post.nextContent.noExtensionUri!post.nextContent.uri}"
class="button big next">${content.nextContent.title}</a></li>
</#if>

</ul>

0 comments on commit 001461e

Please sign in to comment.