mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 00:14:05 +00:00
refactor: relLangURL no longer required in paginator
Hugo's template just uses `.URL`: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates.autogen.go See #915
This commit is contained in:
1 parent
f40c63d7ac
commit
8a3f75839a
1 file changed
+2
-2
@@ -2,10 +2,10 @@
|
||||
<nav>
|
||||
<ul class="pagination justify-content-center">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL | relLangURL }}">«</a></li>
|
||||
<li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL }}">«</a></li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL | relLangURL }}">»</a></li>
|
||||
<li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL }}">»</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
Reference in new issue
Block a user