adding .Site.Params.disableNextPrev

adding this site param to disable back and forth..
This commit is contained in:
will wade 2018-03-14 00:30:00 +00:00 committed by GitHub
parent 2fd986166e
commit 6d6fde35b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,13 +39,14 @@
{{ end }}
{{ end }}
{{if ne .Site.Params.disableNextPrev true }}
{{with ($.Scratch.Get "prevPage")}}
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i></a>
{{end}}
{{with ($.Scratch.Get "nextPage")}}
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
{{end}}
{{end}}
</div>
</section>