Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <Mitrichius@users.noreply.github.com>2021-08-24 21:22:04 +0300
committerGitHub <noreply@github.com>2021-08-24 21:22:04 +0300
commit9ca723f576b3a857977990fdb94b3e5fd7b2b001 (patch)
treeb74c0c65824f390eb5dfe5eb3acb8b3655b0afd7
parent5dab60e04a37896c09a32137aefe821c63b3af04 (diff)
parent7cb4583894302ba7dae4f7eba09188fa32788772 (diff)
Merge pull request #96 from iakunin/issue-95
Fixing broken pagination links on the post page
-rw-r--r--layouts/partials/post-pagination.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/post-pagination.html b/layouts/partials/post-pagination.html
index 92582d3..2130181 100644
--- a/layouts/partials/post-pagination.html
+++ b/layouts/partials/post-pagination.html
@@ -2,12 +2,12 @@
<div class="pagination post-pagination">
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
{{ if .NextInSection }}
- <a href="{{ .NextInSection.Permalink | relLangURL }}">{{ .NextInSection.Title }}</a>
+ <a href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
{{ end }}
</div>
<div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
{{ if .PrevInSection }}
- <a href="{{ .PrevInSection.Permalink | relLangURL }}">{{ .PrevInSection.Title }}</a>
+ <a href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
{{ end }}
</div>
</div>