summaryrefslogtreecommitdiffstats
path: root/themes/aoidh/layouts/_partials/date.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/aoidh/layouts/_partials/date.html')
-rw-r--r--themes/aoidh/layouts/_partials/date.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/aoidh/layouts/_partials/date.html b/themes/aoidh/layouts/_partials/date.html
new file mode 100644
index 0000000..39e108c
--- /dev/null
+++ b/themes/aoidh/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>