style(translation_list): improve indentation and use .Param

This commit is contained in:
Aditya Telange
2026-05-03 13:03:23 +05:30
parent ecd0d4f8f4
commit 0d26c357e1
+3 -1
View File
@@ -1,6 +1,8 @@
{{- if .IsTranslated -}}
{{- if (ne .Layout "search") }}
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}}
{{- if or (.Param "author") (.Param "ShowReadingTime") (not .Date.IsZero) }}
{{- printf " | " | safeHTML -}}
{{- end -}}
{{- end -}}
<span>{{- i18n "translations" | default "Translations" }}:</span>
<ul class="i18n_list">