aboutsummaryrefslogtreecommitdiff
path: root/layouts/journal
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-09-10 00:39:04 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-09-10 00:39:04 +0800
commit2d425e6835738e3b3c796028e0f9716feed69f5c (patch)
tree336b9a272818b9dc3e92cef8c5167199da484493 /layouts/journal
parent6ccbdcbb02720e46a46bb62d60e1db089f8e419a (diff)
downloadrhomepage-2d425e6835738e3b3c796028e0f9716feed69f5c.tar.gz
rhomepage-2d425e6835738e3b3c796028e0f9716feed69f5c.tar.xz
Use created and updated document dates
Diffstat (limited to 'layouts/journal')
-rw-r--r--layouts/journal/single.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/journal/single.html b/layouts/journal/single.html
index d687be1..38c6a96 100644
--- a/layouts/journal/single.html
+++ b/layouts/journal/single.html
@@ -4,10 +4,8 @@
<p class="document-path">{{ .RelPermalink }}</p>
<h1>{{ .Title }}</h1>
<dl class="document-meta">
- <div><dt>published</dt><dd><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></dd></div>
- {{- with .Params.updated }}
- <div><dt>updated</dt><dd><time datetime="{{ time.Format "2006-01-02" . }}">{{ time.Format "2006-01-02" . }}</time></dd></div>
- {{- end }}
+ <div><dt>created</dt><dd><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></dd></div>
+ <div><dt>updated</dt><dd><time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "2006-01-02" }}</time></dd></div>
<div><dt>license</dt><dd>{{ .Params.license }}</dd></div>
</dl>
{{ partial "document-view.html" . }}