aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-17 03:21:58 -0400
committertdro <tdro@noreply.example.com>2023-03-17 03:24:19 -0400
commit3e2f72e296efe7d7268433f3edb6bacab7ad20d8 (patch)
tree42cbd849babcf972ab6acec8843222a6f593d733
parent06aea1d89d6db9b881a004f897e7f7f42fd9ebb2 (diff)
downloadcanory-3e2f72e296efe7d7268433f3edb6bacab7ad20d8.tar.gz
canory-3e2f72e296efe7d7268433f3edb6bacab7ad20d8.tar.bz2
canory-3e2f72e296efe7d7268433f3edb6bacab7ad20d8.zip
themes/default/layouts: Enforce military time
-rw-r--r--themes/default/layouts/_default/section.following.html2
-rw-r--r--themes/default/layouts/partials/author-card.html2
-rw-r--r--themes/default/layouts/partials/meta-context-menu.html2
-rw-r--r--themes/default/layouts/partials/meta-date-time.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html
index 7c9d990..c53ab09 100644
--- a/themes/default/layouts/_default/section.following.html
+++ b/themes/default/layouts/_default/section.following.html
@@ -47,7 +47,7 @@
<time
title="{{ $distinct.FeedDateTitle }}"
datetime="{{ $distinct.FeedDateTime }}">
- {{ $distinct.FeedDateTime | time.Format "3:04 PM Jan 2 2006" -}}
+ {{ $distinct.FeedDateTime | time.Format "15:04 Jan 2 2006" -}}
</time>
</micro-header>
<a
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html
index 7a8395a..873363a 100644
--- a/themes/default/layouts/partials/author-card.html
+++ b/themes/default/layouts/partials/author-card.html
@@ -1,5 +1,5 @@
{{- $metadata := print "public/" .Data.user "/author.json" -}}
-{{- $date := .Date.Local.Format "3:04 PM Jan 2 2006" -}}
+{{- $date := .Date.Local.Format "15:04 Jan 2 2006" -}}
{{- $host := (urls.Parse ("" | absURL)).Host -}}
diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html
index b24ab5d..977f938 100644
--- a/themes/default/layouts/partials/meta-context-menu.html
+++ b/themes/default/layouts/partials/meta-context-menu.html
@@ -19,7 +19,7 @@
</micro-metadata-plain>
{{- partial "meta-permalink.html" . -}}
<micro-metadata-datetime>
- <a title="{{ .Date.Local | time.Format "3:04 PM Jan 2 2006" -}}" href="{{ $href }}">
+ <a title="{{ .Date.Local | time.Format "15:04 Jan 2 2006" -}}" href="{{ $href }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<span>{{ .Date.Local | time.Format "Jan 2 2006" | lower -}}</span>
</a>
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html
index bd42fcc..5b26c68 100644
--- a/themes/default/layouts/partials/meta-date-time.html
+++ b/themes/default/layouts/partials/meta-date-time.html
@@ -3,7 +3,7 @@ title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST"
{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<time datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}">
- {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
+ {{ (.Date.Local | time.Format "15:04 Jan 2 2006") -}}
</time>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
{{ if .Lastmod.After .Date }}