Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hughes <whlabratz@gmail.com>2016-03-09 03:07:52 +0300
committerWilliam Hughes <williamh@catalyst.net.nz>2016-03-09 03:09:34 +0300
commit61c0b52d5562f32181628aa083e84525a6ae060a (patch)
tree221838ea8038b025d0490e72039f75a8f1206e1a /layouts
parentda1d010c5d740b78c9dda1b83dadae3760df52b6 (diff)
Update prev_next_post template to use .NextInSection and .PrevInSection from Hugo 0.12.0
This fixes an issue I was seeing where the 'next' page for a post was the top level 'about' page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/prev_next_post.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/prev_next_post.html b/layouts/partials/prev_next_post.html
index 94c9b69..6b08420 100644
--- a/layouts/partials/prev_next_post.html
+++ b/layouts/partials/prev_next_post.html
@@ -1,18 +1,18 @@
{{ if or (.Prev) (.Next) }}
<div class="prev-next-post pure-g">
<div class="pure-u-1 pure-u-md-1-2">
- {{ if .Prev }}
+ {{ if .PrevInSection }}
<nav class="prev">
- <a href="{{ .Prev.Permalink }}"><i class="fa fa-arrow-circle-left fa-fw fa-lg"></i>{{ .Prev.Title }}</a>
+ <a href="{{ .PrevInSection.Permalink }}"><i class="fa fa-arrow-circle-left fa-fw fa-lg"></i>{{ .PrevInSection.Title }}</a>
</nav>
{{ end }}
</div>
<div class="pure-u-1 pure-u-md-1-2">
- {{ if .Next }}
+ {{ if .NextInSection }}
<nav class="next">
- <a href="{{ .Next.Permalink }}">{{ .Next.Title }}<i class="fa fa-arrow-circle-right fa-fw fa-lg"></i></a>
+ <a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}<i class="fa fa-arrow-circle-right fa-fw fa-lg"></i></a>
</nav>
{{ end }}
</div>
</div>
-{{ end }} \ No newline at end of file
+{{ end }}