Merge pull request #114 from iakunin/2021-11-07-taxonomy-backlink-bug

Fixing bug with wrong "goToAll" link on taxonomy page (tags, categories)
This commit is contained in:
Dmitry Kolosov 2021-11-07 15:52:39 +03:00 committed by GitHub
commit 54317def91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,11 @@
{{ define "main" }}
<h1>{{ i18n .Data.Singular | humanize }}: {{ .Title }}</h1>
<div class="post-info">
<a href="{{ (printf "%s/%s" .Site.LanguagePrefix .Data.Plural) | absLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
<a href="{{ (print .Data.Plural "/") | relLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
</div>
{{ range .Paginator.Pages }}
{{ partial "post-summary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}
{{ end }}