aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.archives.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
committertdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
commitc83c49b0e18f0593a62a8a7754d1ff49ac097289 (patch)
treeecf67e580ce99de31816573afd88fdff5e57bfcb /themes/default/layouts/_default/home.archives.html
parent6f2f44c7ff0e3ff8ffd4e6bb394a0b39c0f89adf (diff)
downloadcanory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.gz
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.bz2
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.zip
themes/default: Make time and dates consistent
Don't mix local time with UTC and fix future date calculation
Diffstat (limited to 'themes/default/layouts/_default/home.archives.html')
-rw-r--r--themes/default/layouts/_default/home.archives.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/home.archives.html b/themes/default/layouts/_default/home.archives.html
index a49b96d..3b5c94b 100644
--- a/themes/default/layouts/_default/home.archives.html
+++ b/themes/default/layouts/_default/home.archives.html
@@ -25,7 +25,7 @@
<item-list>
{{ range (.Paginator.Pages.GroupByDate "2006") }}
{{ range (first 1 .Pages) }}
- <h1>{{ .Date.Format "2006" }}</h1>
+ <h1>{{ .Date | time.Format "2006" }}</h1>
{{ end }}
<ul>
{{ range .Pages }}
@@ -36,7 +36,7 @@
href="{{ .Permalink }}#{{ partial "card-id.html" . }}"
>
<span>
- <code title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}">{{ .Date.Format "02 Jan" }}</code>
+ <code title="{{ .Date | time.Format "Posted: Monday January 2 2006 at 15:04:05 MST" }}">{{ .Date | time.Format "02 Jan" }}</code>
</span>
<span>{{ partial "meta-title.html" . }}</span>
<span>@{{ $author.user }}</span>