summaryrefslogtreecommitdiffstats
path: root/layouts/poems
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 00:19:18 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 00:19:18 +0200
commit882af0656327476b523e0d6538b29ae9ad6eda28 (patch)
tree7487e3ef1b40fc15f8fb3a8520b6b03db6bcbf0c /layouts/poems
parent5e9831ac36147e229fbc40774199ea1cb961ca93 (diff)
downloadgohugo-theme-ed-882af0656327476b523e0d6538b29ae9ad6eda28.tar.gz
Mior reformatting of posts layout
Diffstat (limited to 'layouts/poems')
-rw-r--r--layouts/poems/single.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/layouts/poems/single.html b/layouts/poems/single.html
index d61a185..58038d1 100644
--- a/layouts/poems/single.html
+++ b/layouts/poems/single.html
@@ -1,7 +1,15 @@
{{ define "main" }}
-<article class="poem poetry">
- <h1 class="text-title">{{ .Params.caption | default .Title }}</h1>
- {{ with .Params.author }}<p class="byline">{{ i18n "by" . }}</p>{{ end }}
+<article class="poem poetry" role="document"{{ with .Params.lang}} lang="{{ . }}"{{ end }}>
+ <header>
+ <h1 class="text-title">
+ {{ .Params.caption | default .Title }}
+ </h1>
+ </header>
+
+ <p class="byline">
+ {{ partial "post-meta/author.html" . }}
+ </p>
+
{{ .Content }}
</article>
{{ end }}