Merge pull request #11 from kazu634/modify-labs-section-pagination

Modify labs section pagination
This commit is contained in:
Kazuhiro MUSASHI 2019-04-14 17:58:11 +07:00 committed by GitHub
commit 939d713be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -21,11 +21,11 @@
</main> </main>
<nav class="pagination"> <nav class="pagination">
{{ if .Next }} {{ with .PrevInSection }}
<span class="previous">&larr; <a href="{{ .Next.Permalink }}" rel="prev">{{ .Next.Title }}</a></span> <span class="previous">&larr; <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></span>
{{ end }} {{ end }}
{{ if .Prev }} {{ with .NextInSection }}
<span class="next"><a href="{{ .Prev.Permalink }}" rel="next">{{ .Prev.Title }}</a> &rarr;</span> <span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> &rarr;</span>
{{ end }} {{ end }}
</nav> </nav>