diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index df3f16b..80157ad 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -26,6 +26,11 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version ** `$.Site.Author` has been deprecated and instead uses the `$.Site.Params.author` instead. +=== Fixed + +* Update translation links template. + + == [0.7.1] - 2024-10-28 diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a415558..8fdf3c0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -50,10 +50,10 @@ {{- $langs := slice }} {{- range .Translations }} {{- $lang := cond (ne .Language.LanguageName nil) .Language.LanguageName .Lang }} - {{ $lang_links = $lang_links | append (printf "%s" .RelPermalink $lang) }} + {{ $lang_links = $lang_links | append (printf "%s" .RelPermalink $lang) }} {{ $langs = $langs | append $lang }} {{- end }} -

{{ i18n "available_translations" }}: {{ delimit $lang_links "," (printf " %s " (i18n "and")) }}

+

{{ i18n "available_translations" }}: {{ delimit $lang_links "," (printf " %s " (i18n "and")) | safeHTML }}

{{- end }} {{ end }}