added single layout because articles need it. Might consider moving it to articles...
authordanix <danix@danix.xyz>
Mon, 6 Feb 2023 10:07:27 +0000 (11:07 +0100)
committerdanix <danix@danix.xyz>
Mon, 6 Feb 2023 10:07:27 +0000 (11:07 +0100)
layouts/post/single-baseof.html [new file with mode: 0644]
layouts/post/single.html [new file with mode: 0644]

diff --git a/layouts/post/single-baseof.html b/layouts/post/single-baseof.html
new file mode 100644 (file)
index 0000000..c4b423d
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="{{ $.Site.LanguageCode | default "en" }}">
+       {{- partial "head.html" . -}}
+       <body class="page home">
+               <div id="page">
+                       <a id="top" class="skip-link screen-reader-text" href="#primary">skip to content</a>
+                       {{- partial "header.html" . -}}
+                       <div id="content" class="site-content">
+                               <div id="primary" class="content-area">
+                                       <main id="main" class="site-main">
+                                               {{- block "page-main" . }}{{- end }}
+                                       </main>
+                               </div>
+                       </div>
+                       {{- partial "footer.html" . -}}
+               </div>
+       </body>
+</html>
diff --git a/layouts/post/single.html b/layouts/post/single.html
new file mode 100644 (file)
index 0000000..e475272
--- /dev/null
@@ -0,0 +1,7 @@
+{{ define "page-main" }}
+<article class="single-page">
+       <div id="page-content">
+               {{ .Content }}
+       </div>
+</article>
+{{ end }}