From eac78b1acfccd4ef8f44b7f5228d9f245b206eb9 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 15 Sep 2024 21:12:57 +0200 Subject: [PATCH 1/2] fix: typo in link --- content/actualites/2024-09-14_invitation-jep/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actualites/2024-09-14_invitation-jep/index.md b/content/actualites/2024-09-14_invitation-jep/index.md index 6334b61..cbe078c 100644 --- a/content/actualites/2024-09-14_invitation-jep/index.md +++ b/content/actualites/2024-09-14_invitation-jep/index.md @@ -16,7 +16,7 @@ Ce 22 septembre 2024, notre association organise une journée porte-ouverte à l L'après midi de ce dimanche 22 septembre, venez rencontrer l'équipe de l'association l'Etoile de Bethléem qui oeuvre pour la sauvegarde et la restauration de cette chapelle avec sa crypte unique inscrite aux monuments historiques. Ce sera l'occasion d'en apprendre plus sur son histoire et sur les actions de l'association. - Visite commentée du site et de la crypte à 15h, 16h et 17h. -- [Informations pratiques sur comment se rendre à la chapelle.](/pratique/access-chapelle) +- [Informations pratiques sur comment se rendre à la chapelle.](/pratique/acces-chapelle) ## Randonnée depuis le château de Gaillon jusqu'à la chapelle From 5d3aaafe359ce65b0b5244ad9f51a3026d15811c Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 15 Sep 2024 22:47:52 +0200 Subject: [PATCH 2/2] fix(meta): opengraph, json-ld and gitinfo --- config.toml | 17 +++++++------ layouts/index.html | 2 +- layouts/partials/head.html | 7 +++--- layouts/partials/metas/json-ld.html | 24 +++++++++++++++++++ .../include.html => metas/opengraph.html} | 18 +++++++------- 5 files changed, 48 insertions(+), 20 deletions(-) create mode 100644 layouts/partials/metas/json-ld.html rename layouts/partials/{opengraph/include.html => metas/opengraph.html} (80%) 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 -}}