mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
Make pagination compatible with multilingual sites (Fix #167)
This commit is contained in:
parent
74041d65d1
commit
e72f643b50
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
|||
<nav>
|
||||
<ul class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">« Previous</a></li>
|
||||
<li><a href="{{ .Paginator.Prev.URL | relLangURL }}">« Previous</a></li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||
<li><a href="{{ .Paginator.Next.URL | relLangURL }}">Next »</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue