summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-27 17:46:59 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-27 17:46:59 +0530
commit644c56cafceb495f44c3566fe08e397cfdab85f1 (patch)
tree29318f7e5d33387b0aa3f078f8447e20bdb3d9ae /layouts
parent821d93cdf5f196dbe9c8f324476bcdeb2facfe41 (diff)
using <time> to show blog date
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/blog-list.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/layouts/partials/blog-list.html b/layouts/partials/blog-list.html
index c05eb84..d39be55 100644
--- a/layouts/partials/blog-list.html
+++ b/layouts/partials/blog-list.html
@@ -2,14 +2,8 @@
<div class="blog-post-wrapper">
<a class="blog-post-anchor" href="{{ .RelPermalink }}">
<div class="blog-post">
- <span class="date">
- {{/* .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }} {{ .Date.Format "January" */}}
- {{ .Date.Format "02" }} {{ .Date.Format "Jan" }}
- </span>
-
- <span class="title">
- {{ .Title }}
- </span>
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "02 Jan" }}</time>
+ <span class="title">{{ .Title }}</span>
</div>
</a>
</div>