Fixed next/prev post links. Closes #2
This commit is contained in:
parent
69e10dc344
commit
630c7803a3
@ -37,13 +37,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<ul class="pager">
|
<ul class="pager">
|
||||||
{{ if .Prev }}
|
{{ if .Next }}
|
||||||
<li class="previous"><a href="{{ .Prev.Permalink }}"><span aria-hidden="true">←</span> Older</a></li>
|
<li class="previous"><a href="{{ .Next.Permalink }}"><span aria-hidden="true">←</span> Older</a></li>
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ if .Next }}
|
{{ if .Prev }}
|
||||||
<li class="next"><a href="{{ .Next.Permalink }}">Newer <span aria-hidden="true">→</span></a></li>
|
<li class="next"><a href="{{ .Prev.Permalink }}">Newer <span aria-hidden="true">→</span></a></li>
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user