diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-10 00:39:04 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-10 00:39:04 +0800 |
| commit | cafd54a65f4d576cebdb3c177fc77bbea6dbe289 (patch) | |
| tree | 336b9a272818b9dc3e92cef8c5167199da484493 /layouts/notes | |
| parent | ce9554ceaa68e3a1469ece2b0f303bb7c98d1550 (diff) | |
Use created and updated document dates
Diffstat (limited to 'layouts/notes')
| -rw-r--r-- | layouts/notes/single.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/notes/single.html b/layouts/notes/single.html index ec3545a..35f179d 100644 --- a/layouts/notes/single.html +++ b/layouts/notes/single.html @@ -5,10 +5,8 @@ <h1>{{ .Title }}</h1> {{- with .Params.series }}{{ partial "series-nav.html" (dict "page" $ "mode" "position") }}{{ end }} <dl class="document-meta"> - {{- with .Params.created }} - <div><dt>created</dt><dd><time datetime="{{ time.Format "2006-01-02" . }}">{{ time.Format "2006-01-02" . }}</time></dd></div> - {{- end }} - <div><dt>updated</dt><dd><time datetime="{{ time.Format "2006-01-02" .Params.updated }}">{{ time.Format "2006-01-02" .Params.updated }}</time></dd></div> + <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" . }} |
