From 3513b67bdbd24ba3bf673140ad21e39b82e8cb91 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 19 Oct 2023 01:06:48 +0200 Subject: author card: Social links & link to about page --- layouts/_default/single.html | 2 +- layouts/partials/author_card.html | 29 ++++++++++++++++++++--------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fe5115e..ade8201 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -51,7 +51,7 @@
{{ if in (slice "post" "talk") .Section }} - {{ partial "author_card" . }} + {{ partial "author_card" .Site.Author }} {{ end }} {{ partial "post_pager" . }}
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 @@
-
- -
-
-
{{ .Site.Author.name }}
-
{{ .Site.Author.role }}
-

- {{ .Site.Author.bio }} -

+
+ +
+
+
+ {{ with .homepage }} + + {{ $.name }} + + {{ else }} + {{ .name }} + {{ end }} +
+
{{ .role }}
+

+ {{ .bio }} +

+
+ {{ partial "social_links" . }}
+
-- cgit v1.2.3