diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
| commit | 6b2b8e81e631a1fec44bdb94d5177cf5c56287c9 (patch) | |
| tree | 994d425dd7ea4e4d57986e64fefd712de8011c03 /layouts/narratives | |
| parent | 512e94b28b243105e053c1090f56ac31846bc7cf (diff) | |
| download | gohugo-theme-ed-6b2b8e81e631a1fec44bdb94d5177cf5c56287c9.tar.gz | |
Added multilanguage support
Diffstat (limited to 'layouts/narratives')
| -rw-r--r-- | layouts/narratives/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/narratives/single.html b/layouts/narratives/single.html index 030af43..e3dc1b9 100644 --- a/layouts/narratives/single.html +++ b/layouts/narratives/single.html @@ -1,7 +1,7 @@ {{ define "main" }} <article class="narrative"> <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 }} |
