summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-06-29 23:15:12 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-06-29 23:15:12 -0500
commita51c9890d2b9720297c72b646c894a11474e8532 (patch)
treeceb680b4ec84e07c04266bcf7bc90b6b5caa1036 /layouts
parent531c82359c93f81e40ec2aa6d77b8e0dbd8d4c9e (diff)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/.page.html.swpbin0 -> 12288 bytes
-rw-r--r--layouts/baseof.html7
-rw-r--r--layouts/home.html2
-rw-r--r--layouts/page.html10
-rw-r--r--layouts/section.html11
-rw-r--r--layouts/taxonomy.html7
6 files changed, 37 insertions, 0 deletions
diff --git a/layouts/.page.html.swp b/layouts/.page.html.swp
new file mode 100644
index 0000000..78731f4
--- /dev/null
+++ b/layouts/.page.html.swp
Binary files differ
diff --git a/layouts/baseof.html b/layouts/baseof.html
new file mode 100644
index 0000000..9b5c08e
--- /dev/null
+++ b/layouts/baseof.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html lang="{{ site.Language.Locale }}" dir="{{ or site.Language.Direction `ltr` }}">
+<head></head>
+<body>
+ <main>{{ block "main" . }}{{ end }}</main>
+</body>
+</html>
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..e4e4a83
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,2 @@
+{{ define "main" }}
+{{ end }}
diff --git a/layouts/page.html b/layouts/page.html
new file mode 100644
index 0000000..540938f
--- /dev/null
+++ b/layouts/page.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+
+ {{ .Content }}
+{{ end }}
+
diff --git a/layouts/section.html b/layouts/section.html
new file mode 100644
index 0000000..0b95945
--- /dev/null
+++ b/layouts/section.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+ {{ .Content }}
+ <table>
+ {{ range .Pages }}
+ <tr>
+ <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
+ </tr>
+ {{ end }}
+ </table>
+{{ end }}
+
diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html
new file mode 100644
index 0000000..c2e7875
--- /dev/null
+++ b/layouts/taxonomy.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ {{ range .Pages }}
+ <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+ {{ end }}
+{{ end }}