Merge pull request 'Add "written by" to blog posts' (#147) from benjaoming/website:blog-author into main

Reviewed-on: https://git.data.coop/data.coop/website/pulls/147
This commit is contained in:
reynir 2025-02-24 13:18:43 +00:00
commit 8e66d40f39
3 changed files with 9 additions and 0 deletions

View file

@ -25,3 +25,6 @@ other = "delvis"
[service_url_text] [service_url_text]
other = "Du kan finde <em>{{.Service_name}}</em> på <a href='{{.Service_url}}'>{{.Service_url}}</a>" other = "Du kan finde <em>{{.Service_name}}</em> på <a href='{{.Service_url}}'>{{.Service_url}}</a>"
[blog_post_by]
other = "Skrevet af:"

View file

@ -15,3 +15,6 @@ other = "our data in our hands"
[service_url_text] [service_url_text]
other = "You can find <em>{{.Service_name}}</em> at <a href='{{.Service_url}}'>{{.Service_url}}</a>" other = "You can find <em>{{.Service_name}}</em> at <a href='{{.Service_url}}'>{{.Service_url}}</a>"
[blog_post_by]
other = "Written by:"

View file

@ -5,6 +5,9 @@
<small class="text-secondary">{{ .PublishDate | time.Format ":date_medium" }}</small> <small class="text-secondary">{{ .PublishDate | time.Format ":date_medium" }}</small>
{{ partial "tags" . }} {{ partial "tags" . }}
{{ if .Params.author }}
<br><small><em>{{ i18n "blog_post_by" }} {{ .Params.author }}</em></small>
{{ end }}
{{ .Content }} {{ .Content }}