summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-01-10 12:10:28 -0500
committerSam Anthony <sam@samanthony.xyz>2026-01-10 12:10:28 -0500
commit94ec008558ec992497c27d6d198441f4268bbfef (patch)
treecf55e73c1e4f1d60b3663d64013a546eb27762db /layouts
parent6bbe99fe46d3aeea9743d31f8050e10ccf80f7a7 (diff)
downloadsamanthony.xyz-94ec008558ec992497c27d6d198441f4268bbfef.zip
publish
Diffstat (limited to 'layouts')
-rw-r--r--layouts/articles/page.html11
-rw-r--r--layouts/page.html8
2 files changed, 12 insertions, 7 deletions
diff --git a/layouts/articles/page.html b/layouts/articles/page.html
new file mode 100644
index 0000000..8b8eb16
--- /dev/null
+++ b/layouts/articles/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 }}
diff --git a/layouts/page.html b/layouts/page.html
index 8b8eb16..bac8b18 100644
--- a/layouts/page.html
+++ b/layouts/page.html
@@ -1,11 +1,5 @@
{{ 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>
-
+ <h1 class="title">{{ .Title }}</h1>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}