From d4e0f59a5b6892baf4228bf68b193c704e9c02d9 Mon Sep 17 00:00:00 2001 From: bbb Date: Mon, 24 Feb 2025 14:06:08 +0100 Subject: [PATCH] Add "written by" to blog posts --- i18n/da.toml | 3 +++ i18n/en.toml | 3 +++ themes/datacoop2020/layouts/blog/single.html | 3 +++ 3 files changed, 9 insertions(+) diff --git a/i18n/da.toml b/i18n/da.toml index bee7745..e7eed9e 100644 --- a/i18n/da.toml +++ b/i18n/da.toml @@ -25,3 +25,6 @@ other = "delvis" [service_url_text] other = "Du kan finde {{.Service_name}}{{.Service_url}}" + +[blog_post_by] +other = "Skrevet af:" diff --git a/i18n/en.toml b/i18n/en.toml index fa978f4..0f468c4 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -15,3 +15,6 @@ other = "our data in our hands" [service_url_text] other = "You can find {{.Service_name}} at {{.Service_url}}" + +[blog_post_by] +other = "Written by:" diff --git a/themes/datacoop2020/layouts/blog/single.html b/themes/datacoop2020/layouts/blog/single.html index d376bbd..ecbce2b 100644 --- a/themes/datacoop2020/layouts/blog/single.html +++ b/themes/datacoop2020/layouts/blog/single.html @@ -5,6 +5,9 @@ {{ .PublishDate | time.Format ":date_medium" }} {{ partial "tags" . }} +{{ if .Params.author }} +
{{ i18n "blog_post_by" }} {{ .Params.author }} +{{ end }} {{ .Content }}