summaryrefslogtreecommitdiffstats
path: root/layouts/page.html
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-01-09 08:07:03 -0500
committerSam Anthony <sam@samanthony.xyz>2026-01-09 08:07:03 -0500
commit2ad28cbbfb4287164e7877923291bb18519688fc (patch)
tree7a7dac539d2085cb72cd357246620f7f2021f5e8 /layouts/page.html
parentebf4af075b194229dd1cf3163b1e3cec1f1d3a0d (diff)
downloadsamanthony.xyz-2ad28cbbfb4287164e7877923291bb18519688fc.zip
replace repo contents with revamped site
Diffstat (limited to 'layouts/page.html')
-rw-r--r--layouts/page.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/page.html b/layouts/page.html
new file mode 100644
index 0000000..8b8eb16
--- /dev/null
+++ b/layouts/page.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+ {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+ {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
+ <div>
+ <h1 class="title">{{ .Title }}</h1>
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ </div>
+
+ {{ .Content }}
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+{{ end }}