diff options
author | Keichi Takahashi <keichi.t@me.com> | 2020-04-02 06:56:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 06:56:56 +0300 |
commit | 7205780bbffcdf28597243fc8b41fa3592922f7f (patch) | |
tree | 45c01f74f836ff1f6945877f542029aed074e09f | |
parent | f050f5829f4f839494f4e71e1ceec20090bd97de (diff) | |
parent | 39472a2971e64d6193b53ff23110cb3e72075735 (diff) |
Fixed next and previous links
-rw-r--r-- | layouts/_default/single.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bf5edd9..fae686c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -64,15 +64,15 @@ {{ end }} </section> <ul class="pager"> - {{ if .Next }} - <li class="previous"><a href="{{ .Next.Permalink }}"><span aria-hidden="true">←</span> Older</a></li> + {{ if .Prev }} + <li class="previous"><a href="{{ .Prev.Permalink }}"><span aria-hidden="true">←</span>Older</a></li> {{ else }} - <li class="previous disabled"><a href="#"><span aria-hidden="true">←</span> Older</a></li> + <li class="previous disabled"><a href="#"><span aria-hidden="true">←</span>Older</a></li> {{ end }} - {{ if .Prev }} - <li class="next"><a href="{{ .Prev.Permalink }}">Newer <span aria-hidden="true">→</span></a></li> + {{ if .Next }} + <li class="next"><a href="{{ .Next.Permalink }}">Newer<span aria-hidden="true">→</span></a></li> {{ else }} - <li class="next disabled"><a href="#">Newer <span aria-hidden="true">→</span></a></li> + <li class="next disabled"><a href="#">Newer<span aria-hidden="true">→</span></a></li> {{ end }} </ul> </footer> |