summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/date.html
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-25 19:19:11 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-25 19:19:11 -0400
commit3134dbbadd01cfd3dfc201fcbc4fc8878fecbd95 (patch)
tree3ee2c247222ba412d3cc4ac5985928eca2e72d14 /layouts/_partials/date.html
parent9fa6d931ff669b51b81e0fab9297195acc0e0137 (diff)
downloadsamanthony.xyz-3134dbbadd01cfd3dfc201fcbc4fc8878fecbd95.zip
merge theme into site
Diffstat (limited to 'layouts/_partials/date.html')
-rw-r--r--layouts/_partials/date.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_partials/date.html b/layouts/_partials/date.html
new file mode 100644
index 0000000..39e108c
--- /dev/null
+++ b/layouts/_partials/date.html
@@ -0,0 +1,3 @@
+{{- $machine := . | time.Format "2006-01-02T15:04:05-07:00" -}}
+{{- $human := . | time.Format "2006-01-02" -}}
+<time datetime="{{ $machine }}">{{ $human }}</time>