Merge pull request #11 from kazu634/modify-labs-section-pagination
Modify labs section pagination
This commit is contained in:
commit
939d713be7
|
@ -21,11 +21,11 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<nav class="pagination">
|
<nav class="pagination">
|
||||||
{{ if .Next }}
|
{{ with .PrevInSection }}
|
||||||
<span class="previous">← <a href="{{ .Next.Permalink }}" rel="prev">{{ .Next.Title }}</a></span>
|
<span class="previous">← <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> →</span>
|
<span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> →</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue