Merge pull request #113 from henryiii/fixpage

Remove next/previous for pages
This commit is contained in:
Michael Romero 2017-12-28 00:16:12 -08:00 committed by GitHub
commit 9eea743863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,21 +6,23 @@
{{ .Content }} {{ .Content }}
</article> </article>
<ul class="pager blog-pager"> {{ if ne .Type "page" }}
{{ if .PrevInSection }} <ul class="pager blog-pager">
<li class="previous"> {{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">&larr; {{ i18n "previousPost" }}</a> <li class="previous">
</li> <a href="{{ .PrevInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">&larr; {{ i18n "previousPost" }}</a>
{{ end }} </li>
{{ if .NextInSection }} {{ end }}
<li class="next"> {{ if .NextInSection }}
<a href="{{ .NextInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title }}">{{ i18n "nextPost" }} &rarr;</a> <li class="next">
</li> <a href="{{ .NextInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title }}">{{ i18n "nextPost" }} &rarr;</a>
{{ end }} </li>
</ul> {{ end }}
</ul>
{{ end }}
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }}
{{ if .Site.DisqusShortname }} {{ if .Site.DisqusShortname }}
<div class="disqus-comments"> <div class="disqus-comments">
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}