From eeece83476c57154c0dfd8851c1bb4a20f533a68 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sun, 8 Dec 2024 09:10:11 +0100 Subject: [PATCH] lives: affiche un avertissement pour les annonces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit surcharge certains éléments du thème, afin d'afficher un avertissement pour mettre en évidence les billets qui sont des annonces de prochain live. Co-Authored-by: iGor milhit --- content/lives/10e-live.md | 3 ++- i18n/en.toml | 2 ++ i18n/fr.toml | 2 ++ layouts/_default/section.html | 34 ++++++++++++++++++++++++++++ layouts/partials/home_post_list.html | 21 +++++++++++++++++ themes/portfoliGor | 2 +- 6 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 i18n/en.toml create mode 100644 i18n/fr.toml create mode 100644 layouts/_default/section.html create mode 100644 layouts/partials/home_post_list.html diff --git a/content/lives/10e-live.md b/content/lives/10e-live.md index be77166..9e89079 100644 --- a/content/lives/10e-live.md +++ b/content/lives/10e-live.md @@ -2,7 +2,8 @@ title: "10ᵉ live" date: 2024-11-16T19:44:53+01:00 draft: false -announce: false +params: + announce: false categories: ["musique"] tags: ["streaming", "listening", "live"] slug: 10e-live diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..e6e9f08 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,2 @@ +announcedLive = "Announce of the next live!" +announce = "Announce!" diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..e6e5886 --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,2 @@ +announcedLive = "Annonce du prochain live !" +announce = "Annonce !" diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..42b0721 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,34 @@ +{{ define "main" }} +
+

{{.Title}}

+
+ +
+
+ {{.Content }} +
+
+ + {{ range .Pages.ByPublishDate.Reverse }} + + {{ end }} +
+
+{{ end }} diff --git a/layouts/partials/home_post_list.html b/layouts/partials/home_post_list.html new file mode 100644 index 0000000..31f9de1 --- /dev/null +++ b/layouts/partials/home_post_list.html @@ -0,0 +1,21 @@ +
+

{{ i18n "lastPosts" }}

+ + {{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }} + + {{ end }} +
diff --git a/themes/portfoliGor b/themes/portfoliGor index 0c6ae76..264fc34 160000 --- a/themes/portfoliGor +++ b/themes/portfoliGor @@ -1 +1 @@ -Subproject commit 0c6ae76ed93490439f4ffcaf28232a9b4f727011 +Subproject commit 264fc3480e6eb9f7a21df632eefe9e596cb174b3