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

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lyu <apemost@gmail.com>2019-01-16 09:13:21 +0300
committerAndrew Lyu <apemost@gmail.com>2019-01-16 09:13:21 +0300
commit17e9412dac32773df720e6c4bf2e6e5df95925c3 (patch)
treeb119859e2703cbb4ef4b1365e6fc85f0d4910cb4
parentc2de392b517b5f79f60fa6b26e97b448e34a63b6 (diff)
Don't use deprecated variables
Close #22
-rw-r--r--layouts/partials/nav.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 81e71d2..5d98f72 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,14 +1,14 @@
<nav id="article-nav">
- {{ if .Prev }}
- <a href="{{ .Prev.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
+ {{ if .NextPage }}
+ <a href="{{ .NextPage.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
<div class="article-nav-title"><span>&lt;</span>&nbsp;
- {{ .Prev.Title }}
+ {{ .NextPage.Title }}
</div>
</a>
{{ end }}
- {{ if .Next }}
- <a href="{{ .Next.RelPermalink }}" id="article-nav-older" class="article-nav-link-wrap">
- <div class="article-nav-title">{{ .Next.Title }}&nbsp;<span>&gt;</span></div>
+ {{ if .PrevPage }}
+ <a href="{{ .PrevPage.RelPermalink }}" id="article-nav-older" class="article-nav-link-wrap">
+ <div class="article-nav-title">{{ .PrevPage.Title }}&nbsp;<span>&gt;</span></div>
</a>
{{ end }}
-</nav> \ No newline at end of file
+</nav>