Add "written by" to blog posts
This commit is contained in:
parent
3af362baee
commit
d4e0f59a5b
3 changed files with 9 additions and 0 deletions
|
@ -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:"
|
||||||
|
|
|
@ -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:"
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue