mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
20
themes/minimo/layouts/partials/entry/meta/author.html
Normal file
20
themes/minimo/layouts/partials/entry/meta/author.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- with .Params.authors -}}
|
||||
|
||||
{{- $lang := ( $.Params.lang | default $.Lang ) -}}
|
||||
|
||||
<span class='byline'>
|
||||
{{- partial "svg/icon" "author" -}}
|
||||
<span class='screen-reader-text'> {{ i18n "by" }} </span>
|
||||
|
||||
{{- range $i, $authorID := . -}}
|
||||
{{- $author := ( index $.Site.Data.authors $authorID ) -}}
|
||||
{{- $i18nAuthor := ( index $author $lang ) -}}
|
||||
{{- $name := ( or $i18nAuthor.name $author.name ) -}}
|
||||
{{- if gt $i 0 }}, {{ end -}}
|
||||
<a href='{{ ( print "authors" "/" $author.id ) | relLangURL }}'>
|
||||
{{- $name.display -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user