mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Init con Hugo, conversione ListedDownsync.js, fix metadati post
This commit is contained in:
1
layouts/shortcodes/assetsRoot.html
Normal file
1
layouts/shortcodes/assetsRoot.html
Normal file
@@ -0,0 +1 @@
|
||||
https://sitoctt-assets.octt.eu.org
|
4
layouts/shortcodes/htmlParam.html
Normal file
4
layouts/shortcodes/htmlParam.html
Normal 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 -}}
|
14
layouts/shortcodes/noticeAutomaticTranslation.html
Normal file
14
layouts/shortcodes/noticeAutomaticTranslation.html
Normal 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 -}}
|
Reference in New Issue
Block a user