summaryrefslogtreecommitdiff
path: root/layouts/partials/translation_list.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 18:44:06 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 18:44:06 +0530
commit575cc0ca8c4e5904c7ae77e76db812c52e5f8ed1 (patch)
tree29b83f765f6ccae88651886167681b4afdb71069 /layouts/partials/translation_list.html
parent975972e04181007c61302054d18735dc440a0586 (diff)
Use `site` function instead of `.Site` or `$.Site`
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
Diffstat (limited to 'layouts/partials/translation_list.html')
-rw-r--r--layouts/partials/translation_list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html
index e1c34e1..9d28e15 100644
--- a/layouts/partials/translation_list.html
+++ b/layouts/partials/translation_list.html
@@ -1,13 +1,13 @@
{{- if .IsTranslated -}}
{{- if (ne .Layout "search") }}
-{{- if or .Params.author $.Site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }}&nbsp;|&nbsp;{{- end -}}
+{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }}&nbsp;|&nbsp;{{- end -}}
{{- end }}
<ul class="i18n_list">
{{- i18n "translations" | default "Translations" }}:
{{- range .Translations }}
<li>
<a href="{{ .Permalink }}">
- {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
+ {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify -}}
{{- else }}
{{- .Lang | title -}}