aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/mypaper/layouts/_default/list.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-05-14 22:40:28 +0900
committernsfisis <nsfisis@gmail.com>2022-05-14 22:40:28 +0900
commite2d0028c1fbfb4cac59e20926e5aa0031e0ed607 (patch)
treebf89da301d96aaf22aac30402156cd1f3fed8299 /themes/mypaper/layouts/_default/list.html
parentfee09a6d9a16226ea02b2725fff318cc35dd83b7 (diff)
downloadnsfisis.github.io-e2d0028c1fbfb4cac59e20926e5aa0031e0ed607.tar.gz
nsfisis.github.io-e2d0028c1fbfb4cac59e20926e5aa0031e0ed607.tar.zst
nsfisis.github.io-e2d0028c1fbfb4cac59e20926e5aa0031e0ed607.zip
add changelog field to frontmatter
Diffstat (limited to 'themes/mypaper/layouts/_default/list.html')
-rw-r--r--themes/mypaper/layouts/_default/list.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/mypaper/layouts/_default/list.html b/themes/mypaper/layouts/_default/list.html
index 4840732..053951f 100644
--- a/themes/mypaper/layouts/_default/list.html
+++ b/themes/mypaper/layouts/_default/list.html
@@ -21,7 +21,9 @@
<p>{{ .Summary | plainify | htmlUnescape }}</p>
</section>
<footer class="entry-footer">
- <time>{{ .Date.Format "2006-01-02" }}</time>
+ {{- $date := .Date.Format "2006-01-02" }}
+ {{- $lastmod := .Lastmod.Format "2006-01-02" }}
+ Posted on <time>{{ $date }}</time>{{ if ne $date $lastmod }}, updated on <time>{{ $lastmod }}</time>{{ end }}
</footer>
<a class="entry-link" href="{{ .Permalink }}"></a>
</article>