22 lines
568 B
HTML
22 lines
568 B
HTML
|
{{- if .Site.Params.showAuthor -}}
|
||
|
{{- $author := "" -}}
|
||
|
|
||
|
{{- if .Params.author -}}
|
||
|
{{- $author = .Params.author -}}
|
||
|
{{- else if and .Site.Params.Author .Site.Params.Author.name -}}
|
||
|
{{- $author = .Site.Params.Author.name -}}
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- if $author -}}
|
||
|
<div class="flex flex-col gap-y-1 md:flex-row md:gap-y-0 md:gap-x-4 text-slate-500 dark:text-slate-300">
|
||
|
<div class="flex flex-row text-base gap-x-1">
|
||
|
<i class="h-6 w-6 flex-none">
|
||
|
{{ partial "icon.html" "user" }}
|
||
|
</i>
|
||
|
<span>{{ $author }}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- end -}}
|