diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-08-04 14:49:48 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-08-04 14:49:48 +0200 |
commit | 07ae26b4d0730735eadf1055d27a291a69ba0131 (patch) | |
tree | 166eb5c2dbeac97a9ff1fce1c423186c4402a8ee /layouts/posts/single.html | |
parent | 87a04eaf82583c4186a132afe6cf0f0effada919 (diff) |
Add h-entry tags to content
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r-- | layouts/posts/single.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index cab9527..eca87b9 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,10 +1,13 @@ {{ define "main" }} -<article> +<article class="h-entry"> <header> - <h1>{{ .Title }}</h1> - {{- range .Params.tags }} - <a href="/tags/{{ . | lower }}">#{{ . }}</a> - {{- end }} + <h1 class="p-name">{{ .Title }}</h1> + <p> + {{- range .Params.tags }} + <a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a> + {{- end }} + — Published on <time class="dt-published" datetime="{{ .Date | dateFormat "2006-01-02" }}">{{ .Date | dateFormat "2006-01-02" }}</time>. + </p> {{- if .Draft }} <section class="admonition"> <div class="admonition-title"> @@ -19,7 +22,7 @@ </section> {{- end }} </header> - <main> + <main class="e-content"> {{ .Content }} </main> <footer> |