diff --git a/config.toml b/config.toml index 5d46f0a..7fddbcf 100644 --- a/config.toml +++ b/config.toml @@ -5,14 +5,16 @@ title = "L'Étoile de Bethléem" summaryLength = 22 assetDir = "assets" - minifyOutput = false +enableGitInfo = true [sitemap] changefreq = 'weekly' [params] dateFmt = "02.01.2006 15:04" +ISO8601 = "2006-01-02T15:04:05-07:00" + [params.contact] peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos" email = "contact@etoiledebethleem.fr" @@ -20,6 +22,7 @@ dateFmt = "02.01.2006 15:04" helloasso = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/" helloasso_adhesion = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/adhesions/2023-2024" paper_adhesion = "https://static.etoiledebethleem.fr/docs/adhesion_papier_2023-2024_v3.pdf" + [params.socials] facebook = "https://www.facebook.com/groups/bethleemaubevoye" instagram = "https://www.instagram.com/etoiledebethleem/" @@ -28,13 +31,13 @@ dateFmt = "02.01.2006 15:04" mastodon = "https://attreno.fr/@etoiledebethleem" peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos" -[params.defaultImage] -local = true -src = "images/logo_medium.png" + [params.defaultImage] + local = true + src = "images/logo_medium.png" -[params.defaultCoverImage] -local = true -src = "images/cover_1.jpg" + [params.defaultCoverImage] + local = true + src = "images/cover_1.jpg" [taxonomies] imtag = 'imtags' diff --git a/layouts/index.html b/layouts/index.html index 0b0581c..9fcec0f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@
- +
{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6ea5582..ec19d8a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,11 +13,12 @@ -{{ partial "opengraph/include.html" . }} +{{ partial "metas/opengraph.html" . }} +{{- partial "metas/json-ld.html" . -}} -{{ range .AlternativeOutputFormats }} +{{- range .AlternativeOutputFormats -}} -{{ end }} +{{- end -}} diff --git a/layouts/partials/metas/json-ld.html b/layouts/partials/metas/json-ld.html new file mode 100644 index 0000000..11b4cda --- /dev/null +++ b/layouts/partials/metas/json-ld.html @@ -0,0 +1,24 @@ +{{ if .IsPage }} +{{ if eq .Section "actualites" }} + +{{ end }} +{{ end }} + diff --git a/layouts/partials/opengraph/include.html b/layouts/partials/metas/opengraph.html similarity index 80% rename from layouts/partials/opengraph/include.html rename to layouts/partials/metas/opengraph.html index 7ce8cf5..8858f66 100644 --- a/layouts/partials/opengraph/include.html +++ b/layouts/partials/metas/opengraph.html @@ -5,7 +5,7 @@ - + -{{ if .IsPage }} +{{- if .IsPage -}} {{- range .Params.tags -}} {{- end -}} -{{ end }} +{{- end -}} -{{ if .IsPage }} +{{- if .IsPage -}} {{- if not .Date.IsZero -}} {{- end -}} {{- if not .Lastmod.IsZero -}} {{- end -}} -{{ else }} - {{ if not .Site.LastChange.IsZero }} - +{{- else -}} + {{ if not .Site.Lastmod.IsZero }} + {{- end -}} -{{ end }} +{{- end -}} {{ $image := partial "helpers/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }} {{ if $image.exists }} - + {{- end -}}