Fixing bug with wrong "goToAll" link on taxonomy page (tags, categories)

This commit is contained in:
Maksim Iakunin 2021-11-07 13:35:43 +03:00
parent 837417e19f
commit fde604b1e5
No known key found for this signature in database
GPG Key ID: 629DE6EA48DAF1F4

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 }}