mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
adding .Site.Params.disableNextPrev
adding this site param to disable back and forth..
This commit is contained in:
parent
2fd986166e
commit
6d6fde35b9
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue