Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2022-07-19 21:18:25 +0300
committerGitHub <noreply@github.com>2022-07-19 21:18:25 +0300
commit90eab0d0e8a5f3db2df74494410623d1de0a579b (patch)
tree47a176f277b45de044acf56b81540794df51e299
parente49b9dae98b949dee63bb41fb3517dcc6e375846 (diff)
Use UTC time and add a title in posts/list.html (#298)
-rw-r--r--src/layouts/partials/author-info.html2
-rw-r--r--src/layouts/posts/list.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/layouts/partials/author-info.html b/src/layouts/partials/author-info.html
index 650c5e4c..2f01ff98 100644
--- a/src/layouts/partials/author-info.html
+++ b/src/layouts/partials/author-info.html
@@ -11,7 +11,7 @@
alt="" width="{{ $avatar_width }}" height="{{ $avatar_width }}"{{ if eq .lazyload true }} loading="lazy"{{ end }}>
<span>@{{ $author }}</span>
</a>
- <span class="d-flex align-items-center ms-3" title="{{ $date | dateFormat "Mon, 02 Jan 2006 15:04:00 -0700" }}">
+ <span class="d-flex align-items-center ms-3" title="{{ $date | dateFormat "02 Jan 06 15:04 MST" }}">
{{ partial "icons/calendar-event.svg" (dict "class" "me-2" "width" "24" "height" "24") }}
{{ $date | dateFormat "January 02, 2006" }}
</span>
diff --git a/src/layouts/posts/list.html b/src/layouts/posts/list.html
index f491a7a4..de45adca 100644
--- a/src/layouts/posts/list.html
+++ b/src/layouts/posts/list.html
@@ -6,8 +6,8 @@
<ul class="list mb-5">
{{ range .Pages -}}
<li>
- <span>{{ .Date | dateFormat "Jan 02, 2006" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ <span title="{{ .Date.UTC | dateFormat "02 Jan 06 15:04 MST" }}">{{ .Date | dateFormat "Jan 02, 2006" }}</span>
</li>
{{- end }}
</ul>