Skip to content
Permalink
Browse files

Do prev and next page based on section

so Next on blog/ goes to next blog entry,
and Next on journal/ goes to next journal entry.
  • Loading branch information
thunderrabbit committed Jul 8, 2019
1 parent 16559a8 commit 97b09a88d01a493374ba6231185bf8cb9b723e0b
Showing with 2 additions and 2 deletions.
  1. +2 −2 layouts/_default/single.html
@@ -49,8 +49,8 @@ <h4 style="">Share</h4>
</section>
</div>
<div class="pager">
{{with .NextPage}} <a href="{{.Permalink}}" rel="prev" style="float: left!important">❮ {{.Title}}</a>{{end}}
{{with .PrevPage}} <a href="{{.Permalink}}" rel="next" style="float: right!important"> {{.Title}} ❯</a>{{end}}
{{with .NextInSection}} <a href="{{.Permalink}}" rel="prev" style="float: left!important">❮ {{.Title}}</a>{{end}}
{{with .PrevInSection}} <a href="{{.Permalink}}" rel="next" style="float: right!important"> {{.Title}} ❯</a>{{end}}
</div>
{{ partial "footer.html" . }}
</div>

0 comments on commit 97b09a8

Please sign in to comment.
You can’t perform that action at this time.