summaryrefslogtreecommitdiffstats
path: root/layouts/articles/page.html
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/articles/page.html
parent6bbe99fe46d3aeea9743d31f8050e10ccf80f7a7 (diff)
downloadsamanthony.xyz-94ec008558ec992497c27d6d198441f4268bbfef.zip
publish
Diffstat (limited to 'layouts/articles/page.html')
-rw-r--r--layouts/articles/page.html11
1 files changed, 11 insertions, 0 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 }}