diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-12-27 04:01:34 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-12-27 21:59:22 +0100 |
commit | edf690072e871a3e6acd84b8e9fb84483fdebdc2 (patch) | |
tree | e843cc36fe2c0dbb9b47c3e416a7f1dd9ab8981c /layouts/partials/hero.html | |
parent | a77f5ec0e165c4e061f42b789bcddae75d6fe78c (diff) | |
download | hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.tar.gz hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.tar.bz2 hugo-minimalist-theme-edf690072e871a3e6acd84b8e9fb84483fdebdc2.zip |
Track author taxonomy
Diffstat (limited to 'layouts/partials/hero.html')
-rw-r--r-- | layouts/partials/hero.html | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index 3008ef2..1654b5d 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -6,7 +6,7 @@ {{ end }};" > <div class="mw7 center ph2 near-white lh-copy"> - {{ if eq .Type "about" }} + {{ if eq .Type "authors" }} {{ $avatar := index .Params.images 1 }} {{ if hasPrefix $avatar "http" }} {{ $avatar = resources.GetRemote $avatar }} @@ -17,14 +17,12 @@ <img src="{{ .RelPermalink }}" class="br-100 w5 db center" alt="" /> {{ end }} <h1 class="f1 tc mv1"> - {{ .Title }} + {{ .Params.Name }} </h1> - {{ if .Params.personal }} - <h2 class="f3 tc fw3 mv1"> - {{ .Site.Params.Author.role | markdownify }} - </h2> - {{ end }} + <h2 class="f3 tc fw3 mv1"> + {{ .Params.role | markdownify }} + </h2> {{ with .Params.Subtitle }} <h2 class="f3 tc fw3 mv1"> @@ -34,11 +32,7 @@ <div class="f2 mt3 tc"> - {{ if .Params.personal }} - {{ partial "social_links" .Site.Params.Author }} - {{ else }} - {{ partial "social_links" .Site.Params }} - {{ end }} + {{ partial "social_links" .Params }} </div> {{ else }} |