aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-28 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-28 00:00:00 +0000
commitb1efd00585f84abc397a040852b67c31d36d177d44367a7581afd3e4389b6fd2 (patch)
tree20ff16d4b8db72a0f387faf722fc1534440678d8cd6663111ec052bde04718d4 /layouts/partials/metadata.html
downloadhugo-theme-journal-b1efd00585f84abc397a040852b67c31d36d177d44367a7581afd3e4389b6fd2.tar.gz
hugo-theme-journal-b1efd00585f84abc397a040852b67c31d36d177d44367a7581afd3e4389b6fd2.zip
Initial commit
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r--layouts/partials/metadata.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
new file mode 100644
index 0000000..36ae6fb
--- /dev/null
+++ b/layouts/partials/metadata.html
@@ -0,0 +1,9 @@
+{{ range (where .Site.RegularPages.ByTitle "Section" "post").ByPublishDate.Reverse }}
+{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}
+<article>
+ <header>
+ <p>{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read<br>
+ <a href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
+ </header>
+</article>
+{{ end }}