From 0d26c357e1b630d517b193628c0db75f45abde96 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 3 May 2026 13:03:23 +0530 Subject: [PATCH] style(translation_list): improve indentation and use .Param --- layouts/_partials/translation_list.html | 36 +++++++++++++------------ 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/layouts/_partials/translation_list.html b/layouts/_partials/translation_list.html index 01729cd9..bccdbe95 100644 --- a/layouts/_partials/translation_list.html +++ b/layouts/_partials/translation_list.html @@ -1,19 +1,21 @@ {{- if .IsTranslated -}} -{{- if (ne .Layout "search") }} -{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}} -{{- end -}} -{{- i18n "translations" | default "Translations" }}: - + {{- if (ne .Layout "search") }} + {{- if or (.Param "author") (.Param "ShowReadingTime") (not .Date.IsZero) }} + {{- printf " | " | safeHTML -}} + {{- end -}} + {{- end -}} + {{- i18n "translations" | default "Translations" }}: + {{- end -}}