Fixed next/prev post links. Closes #2

This commit is contained in:
Keichi Takahashi 2015-02-23 16:32:14 +09:00
parent 69e10dc344
commit 630c7803a3

View File

@ -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">&larr;</span> Older</a></li> <li class="previous"><a href="{{ .Next.Permalink }}"><span aria-hidden="true">&larr;</span> Older</a></li>
{{ else }} {{ else }}
<li class="previous disabled"><a href="#"><span aria-hidden="true">&larr;</span> Older</a></li> <li class="previous disabled"><a href="#"><span aria-hidden="true">&larr;</span> Older</a></li>
{{ end }} {{ end }}
{{ if .Next }} {{ if .Prev }}
<li class="next"><a href="{{ .Next.Permalink }}">Newer <span aria-hidden="true">&rarr;</span></a></li> <li class="next"><a href="{{ .Prev.Permalink }}">Newer <span aria-hidden="true">&rarr;</span></a></li>
{{ else }} {{ else }}
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li> <li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
{{ end }} {{ end }}