From e15e39155de54dc1624bab80eefbccd6a783cd0c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 15 Jul 2022 21:26:31 +0000
Subject: [PATCH] fix: give precedence to date created over last modified if defined (#101)
---
layouts/partials/page-list.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/page-list.html b/layouts/partials/page-list.html
index f630f1a..385a0e7 100644
--- a/layouts/partials/page-list.html
+++ b/layouts/partials/page-list.html
@@ -3,7 +3,7 @@
<li class="section-li">
<div class="section">
<p class="meta">
- {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}
+ {{partial "date-fmt.html" .}}
</p>
<div class="desc">
<h3><a href="{{ .Permalink }}">{{- .Title -}}</a></h3>
--
Gitblit v1.10.0