Add "written by" to blog posts

This commit is contained in:
bbb 2025-02-24 14:06:08 +01:00
parent 3af362baee
commit d4e0f59a5b
No known key found for this signature in database
GPG key ID: 486F0D69C845416E
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 }}