From: Kai Moritz Date: Mon, 22 Dec 2025 21:12:22 +0000 (+0100) Subject: Layout `home` für Seiten mit voller Gestaltungsfreiheit für `article` X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=73e1743836fc04eaf8ffccb78fe08e49038a94dc;p=website Layout `home` für Seiten mit voller Gestaltungsfreiheit für `article` --- 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 }}