From 991f13688e199fd7b9acd0209fb9f964bc903610 Mon Sep 17 00:00:00 2001 From: gribse Date: Tue, 13 May 2025 22:19:04 +0200 Subject: [PATCH] Update RSS feed support and enhance footer layout --- hugo.yml | 5 +++-- layouts/partials/footer.html | 4 +++- {themes/PaperMod/layouts/_default => layouts}/rss.xml | 5 +++-- readMe.md | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) rename {themes/PaperMod/layouts/_default => layouts}/rss.xml (93%) diff --git a/hugo.yml b/hugo.yml index e6a0b18..7bdb1c9 100644 --- a/hugo.yml +++ b/hugo.yml @@ -1,7 +1,7 @@ baseURL: 'https://blog.achilletoupin.com/' languageCode: 'fr-fr' title: 'Achille Toupin' -#description: 'Blog personnel de moi' + theme: 'PaperMod' taxonomies: - tag: tags @@ -30,6 +30,7 @@ menu: params: + description: "Mes pensées, idées et projets récents" # defaultTheme: light # defaultTheme: dark defaultTheme: auto # to switch between dark or light according to browser theme @@ -64,7 +65,7 @@ params: outputFormats: RSS: baseName: "feed" - + outputs: home: - HTML diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c0b28d4..b2ef879 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -17,8 +17,10 @@ {{- partial "donnees-chargement.html" -}} + {{- print " · "}} + - + Flux RSS diff --git a/themes/PaperMod/layouts/_default/rss.xml b/layouts/rss.xml similarity index 93% rename from themes/PaperMod/layouts/_default/rss.xml rename to layouts/rss.xml index fed8ae9..1473a13 100644 --- a/themes/PaperMod/layouts/_default/rss.xml +++ b/layouts/rss.xml @@ -47,7 +47,7 @@ {{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ site.Title }}{{ end }} {{ .Permalink }} - Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }} + {{ site.Params.description }} {{- with site.Params.images }} {{ site.Title }} @@ -65,7 +65,8 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }} {{- range $pages }} - {{- if and (ne .Layout `search`) (ne .Layout `archives`) }} + {{- $section := .Section }} + {{- if and (ne .Layout `search`) (ne .Layout `archives`) (ne $section `a-propos`) (ne $section `blogroll`) (ne $section `contact`) }} {{ .Title }} {{ .Permalink }} diff --git a/readMe.md b/readMe.md index fb1b890..0bd467a 100644 --- a/readMe.md +++ b/readMe.md @@ -3,7 +3,7 @@ # Minimum viable blog ## Page d'accueil -- [ ] Lien flux rss en bas de page +- [x] Lien flux rss en bas de page - [ ] Resize scrolling posts pour écrans fullhd x1.25 ## Galleries / figures @@ -20,7 +20,7 @@ - [ ] réhéberger TPE & PEM2T (et autres trucs chez OVH) en local - [ ] make it so the 404 page works - [ ] mettre une favicon -- [ ] Mettre en forme flux RSS +- [x] Mettre en forme flux RSS - [ ] Script de mise en ligne avec rsync # Would be nice