Add author bio to article footer

This commit is contained in:
James Panther
2021-11-04 10:54:47 +11:00
parent 3a2ce6a9e0
commit 4fa7aa4c77
7 changed files with 19 additions and 3 deletions
+5 -2
View File
@@ -1,9 +1,9 @@
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
<div class="flex items-center">
<div class="flex">
{{ with .Site.Author.image }}
<img class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full" src="{{ . | relURL }}" />
{{ end }}
<div>
<div class="place-self-center">
{{ with .Site.Author.name | markdownify | emojify }}
<div class="text-[0.6rem] leading-3 text-neutral-400 dark:text-neutral-500 uppercase">
{{ i18n "author.byline_title" | markdownify | emojify }}
@@ -12,6 +12,9 @@
{{ . }}
</div>
{{ end }}
{{ with .Site.Author.bio | markdownify | emojify }}
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
{{ end }}
{{ partialCached "author-links.html" . }}
</div>
</div>