mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
Remove baseurl from automatic navigation arrows
Since it's already included in `Page.URL`
This commit is contained in:
parent
9144ca72aa
commit
532a102a87
1 changed files with 2 additions and 2 deletions
|
@ -37,12 +37,12 @@
|
|||
{{if eq $element.UniqueID $uniqueid }}
|
||||
{{ if not (isset $.Params "prev") }}
|
||||
{{ 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 }}
|
||||
{{ if not (isset $.Params "next") }}
|
||||
{{ 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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue