From f01da2fe955d483a31a25f7d671d5e498cab9b7b Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 15 Mar 2024 08:32:11 +0100 Subject: [PATCH] fix: doc title --- content/_index.md | 1 + content/association/_index.md | 2 +- layouts/partials/data/title.html | 9 ++------- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/content/_index.md b/content/_index.md index 6370560..ea4522f 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,6 @@ --- title: Accueil +description: "Association des amis de la chapelle d'Aubevoye en Normandie" body_class: "landing-page" --- diff --git a/content/association/_index.md b/content/association/_index.md index a6f5719..d296ebb 100644 --- a/content/association/_index.md +++ b/content/association/_index.md @@ -1,5 +1,5 @@ --- -title: "L'association des amis de la chapelle de bethléem" +title: "Présentation de l'association" --- Formé en septembre 2022, suite aux efforts des propriétaires et des passionées de ce monument. Elle a pour but de contribuer à la sauvegarde et à la restauration de la Chapelle de Bethléem d'Aubevoye et de promouvoir ce monument ainsi que mieux le connaitre et l'animer. diff --git a/layouts/partials/data/title.html b/layouts/partials/data/title.html index 8193fe7..4cf740e 100644 --- a/layouts/partials/data/title.html +++ b/layouts/partials/data/title.html @@ -2,8 +2,6 @@ {{- $siteTitle := .Site.Title -}} {{- if .IsHome -}} - - {{ $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} @@ -12,9 +10,7 @@ {{ if .Paginator.HasPrev }} - {{ $title = printf "%s - %s" .Paginator $siteTitle }} - {{ else }} - {{ $title = $siteTitle}} + {{ $title = printf "%s" .Paginator }} {{ end }} {{- else if eq .Kind "term" -}} @@ -31,9 +27,8 @@ {{ $title = $title | append " - " .Paginator }} {{ end }} - {{ $title = $title | append " - " $siteTitle }} - {{ $title = delimit $title "" }} {{- end -}} +{{ $title = printf "%s - %s" $title $siteTitle }} {{ return $title }}