diff --git a/layouts/partials/page_author.html b/layouts/partials/page_author.html index bdb9c8da..288f878d 100644 --- a/layouts/partials/page_author.html +++ b/layouts/partials/page_author.html @@ -19,6 +19,11 @@ {{ $taxonomy := "authors" }} {{ $profile_page := site.GetPage (printf "/%s/%s" $taxonomy $author_urlized) }} {{ with $profile_page }} + {{/* If it's a personal site and primary page author is superuser, link to the homepage rather than their profile page. */}} + {{ $profile_url := .RelPermalink }} + {{ if and (not site.Data.organization.name) (eq .Params.superuser true) }} + {{ $profile_url = site.BaseURL }} + {{ end }} {{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}
{{ if and site.Params.gravatar .Params.email }} @@ -29,7 +34,7 @@ {{ end }}
-
{{.Params.name}}
+
{{.Params.name}}
{{ with .Params.role }}
{{. | markdownify | emojify}}
{{end}} {{ with .Params.bio }}

{{. | markdownify | emojify}}

{{end}}