aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-19 01:06:48 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-19 01:06:48 +0200
commit3513b67bdbd24ba3bf673140ad21e39b82e8cb91 (patch)
treebff4fe78f358b5075a70e931873647860c8a7122 /layouts/partials
parentc7cea43cc00ea4cdddfb09466eca268dc3b7a972 (diff)
downloadhugo-minimalist-theme-3513b67bdbd24ba3bf673140ad21e39b82e8cb91.tar.gz
hugo-minimalist-theme-3513b67bdbd24ba3bf673140ad21e39b82e8cb91.tar.bz2
hugo-minimalist-theme-3513b67bdbd24ba3bf673140ad21e39b82e8cb91.zip
author card: Social links & link to about page
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/author_card.html29
1 files changed, 20 insertions, 9 deletions
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html
index b2f77c0..fdc8926 100644
--- a/layouts/partials/author_card.html
+++ b/layouts/partials/author_card.html
@@ -1,12 +1,23 @@
<div class="mw7 center pa4 flex flex-column flex-row-ns bt b--black-10">
- <div class="w-10-ns tc">
- <img src="{{ .Site.Author.avatar }}" class="br-100 w3">
- </div>
- <div class="w-90-ns ph3-ns">
- <h5 class="f4 mv1 berkshire-swash">{{ .Site.Author.name }}</h5>
- <h6 class="f5 fw3 pa0 ma0">{{ .Site.Author.role }}</h6>
- <p class="f6 lh-copy">
- {{ .Site.Author.bio }}
- </p>
+ <div class="w-10-ns tc">
+ <img src="{{ .avatar }}" class="br-100 w3" />
+ </div>
+ <div class="w-90-ns ph3-ns">
+ <h5 class="f4 mv1 berkshire-swash">
+ {{ with .homepage }}
+ <a href="{{ . }}" class="link color-inherit">
+ {{ $.name }}
+ </a>
+ {{ else }}
+ {{ .name }}
+ {{ end }}
+ </h5>
+ <h6 class="f5 fw3 pa0 ma0">{{ .role }}</h6>
+ <p class="f6 lh-copy">
+ {{ .bio }}
+ </p>
+ <div class="f4 mt3">
+ {{ partial "social_links" . }}
</div>
+ </div>
</div>