mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:31:19 +08:00
Remove baseurl from automatic navigation arrows
Since it's already included in `Page.URL`
This commit is contained in:
parent
9144ca72aa
commit
532a102a87
@ -37,12 +37,12 @@
|
|||||||
{{if eq $element.UniqueID $uniqueid }}
|
{{if eq $element.UniqueID $uniqueid }}
|
||||||
{{ if not (isset $.Params "prev") }}
|
{{ if not (isset $.Params "prev") }}
|
||||||
{{ with index $allpages (sub $index 1) }}
|
{{ with index $allpages (sub $index 1) }}
|
||||||
<a class="nav nav-prev" href="{{ $.Site.BaseURL }}{{ .URL }}"> <i class="fa fa-chevron-left"></i></a>
|
<a class="nav nav-prev" href="{{ .URL }}"> <i class="fa fa-chevron-left"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if not (isset $.Params "next") }}
|
{{ if not (isset $.Params "next") }}
|
||||||
{{ with index $allpages (add $index 1) }}
|
{{ with index $allpages (add $index 1) }}
|
||||||
<a class="nav nav-next" href="{{ $.Site.BaseURL }}{{ .URL }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
<a class="nav nav-next" href="{{ .URL }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user