Init con Hugo, conversione ListedDownsync.js, fix metadati post

This commit is contained in:
2024-08-24 02:16:17 +02:00
parent a8a226b4f4
commit dda72042fd
151 changed files with 2063 additions and 1033 deletions

View File

@@ -0,0 +1 @@
https://sitoctt-assets.octt.eu.org

View File

@@ -0,0 +1,4 @@
{{- $name := (.Get 0) -}}
{{- with $name -}}
{{- with ($.Page.Param .) }}{{ . | safeHTML }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}
{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}}

View File

@@ -0,0 +1,14 @@
{{- $languageName := "[???]" -}}
{{- $languageCode := (.Get 0) -}}
{{- range .Site.Languages -}}
{{- if eq $languageCode (string .) -}}
{{- $languageName = .LanguageName -}}
{{- end -}}
{{- end -}}
{{- $noticeText := "" -}}
{{- with dict "languageName" $languageName -}}
{{- $noticeText = (i18n "noticeAutomaticTranslation" .) -}}
{{- end -}}
{{- with dict "Params" "" "noticeType" "caution" "Inner" $noticeText -}}
{{- partial "notice" . -}}
{{- end -}}