summaryrefslogtreecommitdiff
path: root/layouts/page.html
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/page.html
parent531c82359c93f81e40ec2aa6d77b8e0dbd8d4c9e (diff)
Diffstat (limited to 'layouts/page.html')
-rw-r--r--layouts/page.html10
1 files changed, 10 insertions, 0 deletions
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 }}
+