summaryrefslogtreecommitdiffstats
path: root/layouts/poems
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-28 15:15:11 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-28 15:15:11 +0200
commit6b2b8e81e631a1fec44bdb94d5177cf5c56287c9 (patch)
tree994d425dd7ea4e4d57986e64fefd712de8011c03 /layouts/poems
parent512e94b28b243105e053c1090f56ac31846bc7cf (diff)
downloadgohugo-theme-ed-6b2b8e81e631a1fec44bdb94d5177cf5c56287c9.tar.gz
Added multilanguage support
Diffstat (limited to 'layouts/poems')
-rw-r--r--layouts/poems/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/poems/single.html b/layouts/poems/single.html
index c55eef8..d61a185 100644
--- a/layouts/poems/single.html
+++ b/layouts/poems/single.html
@@ -1,7 +1,7 @@
{{ define "main" }}
<article class="poem poetry">
<h1 class="text-title">{{ .Params.caption | default .Title }}</h1>
- <p class="byline">by {{ .Params.author }}</p>
+ {{ with .Params.author }}<p class="byline">{{ i18n "by" . }}</p>{{ end }}
{{ .Content }}
</article>
{{ end }}