summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.html
diff options
context:
space:
mode:
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 }}