diff --git a/content/event/test/index.md b/content/event/test/index.md index f980613..26893be 100644 --- a/content/event/test/index.md +++ b/content/event/test/index.md @@ -1,6 +1,6 @@ --- title: "Second post" -ConcertDate: "Test" +ConcertDate: "2026-01-08T18:00:00" Summary: "I'm a summary" Description: "I'm a desciption" TicketsLink: "https://helloasso.com" diff --git a/content/event/volcan/index.md b/content/event/volcan/index.md index beca58c..a8c0d73 100644 --- a/content/event/volcan/index.md +++ b/content/event/volcan/index.md @@ -1,6 +1,6 @@ --- title: "Vols au dessus du volcan" -ConcertDate: "Samedi 8 nov. 2025 18:00" +ConcertDate: "2025-11-08T18:00:00" Summary: "Une évoquation des voyages incessants d’Antoine de Saint-Exupéry et de sa femme Consuelo Suncín, marquée par les éruptions des volcans d’El Salvador de son enfance." Description: "Isabelle Chemin - Musique & théatre" TicketsLink: "https://www.helloasso.com/associations/association-des-amis-de-la-chapelle-victoria-de-grasse/evenements/tickets-vols-au-dessus-du-volcan" diff --git a/hugo.toml b/hugo.toml index ee4ec46..bcc2548 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,7 @@ baseURL = 'https://adlc.dawl.fr/' -languageCode = 'fr' +languageCode = 'fr-FR' +defaultContentLanguage = "fr" +defaultContentLang = "fr" title = 'Les amis de la chapelle Victoria' disableKinds = ['taxonomy', 'term'] diff --git a/layouts/_default/home.html b/layouts/_default/home.html index dd8e29d..bc0d377 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -3,7 +3,11 @@
{{ range where site.RegularPages "Section" "event" }}
-

{{ .Params.ConcertDate }}

+

+ {{ $t := time.AsTime .Params.ConcertDate }} + {{ $format := "Monday 2 Jan 2006 15h04" }} + {{ time.Format $format $t | humanize }} +

{{ with .Resources.GetMatch "cover.*" }}