mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 14:39:04 +08:00
adding .Site.Params.disableNextPrev
adding this site param to disable back and forth..
This commit is contained in:
parent
2fd986166e
commit
6d6fde35b9
@ -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…
x
Reference in New Issue
Block a user