diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2019-08-28 13:45:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 13:45:16 +0300 |
commit | e60e29352a33ae85ec95ceb1ce7c9c8369ac80d6 (patch) | |
tree | 064ead6bed7e89a74f1399243876fcb38614a2d9 /layouts | |
parent | f0255a38759838efabd9bc8e44cafcd3fcdfa4cd (diff) | |
parent | 55af05b2ecfdb36a8a66d1786a331579b85c2b97 (diff) |
Merge pull request #55 from AngeloStavrow/54_prev-next-links-reversed
Adopts .PrevPage/.NextPage for article footer links
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6e227c0..864138b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,11 +14,11 @@ </div> {{ end }} <div id="footer"> - {{ if or (.Prev) (.Next) }} + {{ if or (.NextPage) (.PrevPage) }} <nav id="article-skip"> - <div class="prev"> - {{ if and (.Prev) (not .Params.Menu) }} - <a alt="Newer article" href="{{ .Prev.Permalink }}">← Newer</a> + <div class="next"> + {{ if and (.NextPage) (not .Params.Menu) }} + <a alt="Newer article" href="{{ .NextPage.Permalink }}">← Newer</a> {{ else }} <p> </p> {{ end }} @@ -26,9 +26,9 @@ <div class="top"> <a alt="Top of page" href="#">Top</a> </div> - <div class="next"> - {{ if and (.Next) (not .Params.Menu) }} - <a alt="Older article" href="{{ .Next.Permalink }}">Older →</a> + <div class="prev"> + {{ if and (.PrevPage) (not .Params.Menu) }} + <a alt="Older article" href="{{ .PrevPage.Permalink }}">Older →</a> {{ else }} <p> </p> {{ end }} |