diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-16 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-16 00:00:00 +0000 |
commit | fe2d028c74ad35151412e94697bc6db06fbeaefdc40a9d65ee707ba0e7695f89 (patch) | |
tree | 13acf3c417190f3b88ac1a4b3e51cc114a4750f4b8a08a1d847ef1a5833769b4 /layouts/partials/pageinfo | |
parent | 8be0f23ffbdd5d89a6122d145e67d7bf735440fc97a58f5d5e8c0f9ca3d79e45 (diff) | |
download | hugo-theme-journal-fe2d028c74ad35151412e94697bc6db06fbeaefdc40a9d65ee707ba0e7695f89.tar.gz hugo-theme-journal-fe2d028c74ad35151412e94697bc6db06fbeaefdc40a9d65ee707ba0e7695f89.zip |
Conditionally add page info to top of page
Diffstat (limited to 'layouts/partials/pageinfo')
-rw-r--r-- | layouts/partials/pageinfo | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/pageinfo b/layouts/partials/pageinfo new file mode 100644 index 0000000..c512b88 --- /dev/null +++ b/layouts/partials/pageinfo @@ -0,0 +1,2 @@ +{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}} +📆 {{ .Page.PublishDate.Format $dateFormat | safeHTML }} | ⏱️ {{ .Page.ReadingTime | safeHTML }} minute read
\ No newline at end of file |