mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 22:32:02 +08:00
fix: dead links on prev/next arrows
This commit is contained in:
parent
de671a10cd
commit
7603122da8
@ -6,8 +6,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
{{ with .Params.prev }}<a class="nav nav-prev" href="{{ . }}"> <i class="fa fa-chevron-left"></i></a>{{ end }}
|
{{ $Site := .Site }}
|
||||||
{{ with .Params.next }}<a class="nav nav-next" href="{{ . }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>{{ end }}
|
{{ with .Params.prev }}<a class="nav nav-prev" href="{{ $Site.BaseURL }}{{ . }}"> <i class="fa fa-chevron-left"></i></a>{{ end }}
|
||||||
|
{{ with .Params.next }}<a class="nav nav-next" href="{{ $Site.BaseURL }}{{ . }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user