]> juplo.de Git - website/commitdiff
Layout `home` für Seiten mit voller Gestaltungsfreiheit für `article`
authorKai Moritz <kai@juplo.de>
Mon, 22 Dec 2025 21:12:22 +0000 (22:12 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 22 Dec 2025 21:58:35 +0000 (22:58 +0100)
content/about/contact.html
layouts/baseof.html
layouts/home.html

index a487bfd6a7110b8324acf73120cbb05c97d69def..a4edb044796e022a5fbca99be9d5c0f4ed0455cf 100644 (file)
@@ -1,5 +1,6 @@
 ---
 title: "Contact"
+layout: home
 url: /contact.html
 weight: 10
 ---
index 4f3a79b8a849dacb859f5d102048034574a59174..0149684bb928a10d2a2ac9f7232ba560ad7dabea 100644 (file)
@@ -9,12 +9,14 @@
     {{- partial "breadcrumb.html" . }}
     <main class="content cf">
         <article id="content" class="main">
+          {{- block "article" . }}
           <header>
             {{- block "title" . }}
             <h1>{{ .Title }}</h1>
             {{ end }}
           </header>
           {{- block "content" . }}{{ end }}
+          {{- end }}{{/* article */}}
         </article>
         <div class="marginal">
           {{- block "menu" . }}{{- partial "menu/default.html" (dict "page" .) }}{{ end }}
index 4fb044f4a14a04c40533e3d9fc6a4bebf892c62d..57857c61d35e9f882b6d315de1405cb0f6c78eb3 100644 (file)
@@ -1,3 +1,3 @@
-{{ define "content" }}
+{{ define "article" }}
   {{ .Content }}
 {{ end }}