diff options
author | Andrew Lyu <apemost@gmail.com> | 2019-01-16 09:13:21 +0300 |
---|---|---|
committer | Andrew Lyu <apemost@gmail.com> | 2019-01-16 09:13:21 +0300 |
commit | 17e9412dac32773df720e6c4bf2e6e5df95925c3 (patch) | |
tree | b119859e2703cbb4ef4b1365e6fc85f0d4910cb4 | |
parent | c2de392b517b5f79f60fa6b26e97b448e34a63b6 (diff) |
Don't use deprecated variables
Close #22
-rw-r--r-- | layouts/partials/nav.html | 14 |
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><</span> - {{ .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 }} <span>></span></div> + {{ if .PrevPage }} + <a href="{{ .PrevPage.RelPermalink }}" id="article-nav-older" class="article-nav-link-wrap"> + <div class="article-nav-title">{{ .PrevPage.Title }} <span>></span></div> </a> {{ end }} -</nav>
\ No newline at end of file +</nav> |