Fix pie di pagina Listed, embed link, bottone footer, script traduzione, pagine

This commit is contained in:
2024-09-21 02:33:49 +02:00
parent 202a38769a
commit c1bac2daeb
20 changed files with 378 additions and 162 deletions

View File

@@ -2,27 +2,20 @@
{{- $pages := .Site.Pages -}}
{{- range $pages -}}
{{- $section := .Site.GetPage "section" .Section -}}
{{- $page := (dict
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
"type" .Type
) -}}
{{- if .Date -}}
{{- $index = $index | append (dict
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
"type" .Type
) -}}
{{- else -}}
{{- $index = $index | append (dict
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
"type" .Type
) -}}
{{- $page = (merge $page (dict
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
)) -}}
{{- end -}}
{{- $index = $index | append $page -}}
{{- end -}}
window.SiteSearchIndex={{- $index | jsonify -}}