🚨 Support new language params changes in Hugo

This commit is contained in:
James Panther
2023-05-25 14:12:42 +10:00
parent aba3d34482
commit 50c5d212de
8 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{{- $section := .Site.GetPage "section" .Section -}}
{{- $showDate := .Params.showDate | default .Site.Params.article.showDate -}}
{{- $index = $index | append (dict
"date" (cond (and .IsPage $showDate) (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long")) nil)
"date" (cond (and .IsPage $showDate) (.Date | time.Format (site.Params.dateFormat | default ":date_long")) nil)
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | emojify | safeJS)