From 73e1743836fc04eaf8ffccb78fe08e49038a94dc Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 22 Dec 2025 22:12:22 +0100 Subject: [PATCH] =?utf8?q?Layout=20`home`=20f=C3=BCr=20Seiten=20mit=20voll?= =?utf8?q?er=20Gestaltungsfreiheit=20f=C3=BCr=20`article`?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- content/about/contact.html | 1 + layouts/baseof.html | 2 ++ layouts/home.html | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/about/contact.html b/content/about/contact.html index a487bfd6..a4edb044 100644 --- a/content/about/contact.html +++ b/content/about/contact.html @@ -1,5 +1,6 @@ --- title: "Contact" +layout: home url: /contact.html weight: 10 --- diff --git a/layouts/baseof.html b/layouts/baseof.html index 4f3a79b8..0149684b 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -9,12 +9,14 @@ {{- partial "breadcrumb.html" . }}
+ {{- block "article" . }}
{{- block "title" . }}

{{ .Title }}

{{ end }}
{{- block "content" . }}{{ end }} + {{- end }}{{/* article */}}
{{- block "menu" . }}{{- partial "menu/default.html" (dict "page" .) }}{{ end }} diff --git a/layouts/home.html b/layouts/home.html index 4fb044f4..57857c61 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,3 +1,3 @@ -{{ define "content" }} +{{ define "article" }} {{ .Content }} {{ end }} -- 2.39.5