From 8d89730a80eaf4be37408e98703803aef3e31587 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Tue, 27 May 2025 10:50:07 +0200 Subject: [PATCH] fix: Restructure les templates pour utiliser correctement les blocs Hugo --- layouts/_default/baseof.html | 27 ++++++++++++--------------- layouts/_default/list.html | 3 +++ 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 layouts/_default/list.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1cb2021..6118ce7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,25 +1,22 @@ - + - - - {{ .Title }} | {{ .Site.Title }} - + + + {{ .Title }} +
- - + {{ partial "header.html" . }}
+
- {{ .Content }} + {{ block "main" . }}{{ .Content }}{{ end }}
- {{ partial "footer.html" . }} + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..7ab2eb2 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} \ No newline at end of file