aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-23 08:28:50 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-23 08:28:50 +0200
commitd354f4a6bd0a002a995f221a66afb4697be78145 (patch)
treef9a868bfbd2a1aee4a2179272878929e3d0f833a
parentd4c6a44bff3c2a1026239dc54cd6fdbbd586e6dc (diff)
downloadhugo-minimalist-theme-d354f4a6bd0a002a995f221a66afb4697be78145.tar.gz
hugo-minimalist-theme-d354f4a6bd0a002a995f221a66afb4697be78145.tar.bz2
hugo-minimalist-theme-d354f4a6bd0a002a995f221a66afb4697be78145.zip
Hero about personal uses author role not subtitle
This way I can keep in sync with author card
-rw-r--r--layouts/partials/author_card.html2
-rw-r--r--layouts/partials/hero.html6
2 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html
index fdc8926..22d60e0 100644
--- a/layouts/partials/author_card.html
+++ b/layouts/partials/author_card.html
@@ -12,7 +12,7 @@
{{ .name }}
{{ end }}
</h5>
- <h6 class="f5 fw3 pa0 ma0">{{ .role }}</h6>
+ <h6 class="f5 fw3 pa0 ma0">{{ .role | markdownify }}</h6>
<p class="f6 lh-copy">
{{ .bio }}
</p>
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 93edc74..9ff5329 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -20,6 +20,12 @@
{{ .Title }}
</h1>
+ {{ if .Params.personal }}
+ <h2 class="f3 tc fw3 mv1">
+ {{ .Site.Author.role | markdownify }}
+ </h2>
+ {{ end }}
+
{{ with .Params.Subtitle }}
<h2 class="f3 tc fw3 mv1">
{{ . | markdownify }}