aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-09 18:34:49 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-09 18:34:49 +0100
commitde099f27f293ad1d482303644e02fb458f3f3502 (patch)
tree0738dc4cc9ccf157adc7483ba920086593724856 /layouts
parentc4b5e3e29612c84dc270967c3181d2dddb0a82c6 (diff)
downloadhugo-minimalist-theme-de099f27f293ad1d482303644e02fb458f3f3502.tar.gz
hugo-minimalist-theme-de099f27f293ad1d482303644e02fb458f3f3502.tar.bz2
hugo-minimalist-theme-de099f27f293ad1d482303644e02fb458f3f3502.zip
[FIX] Hero blockquote spacing
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/hero.html27
1 files changed, 11 insertions, 16 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 8ed0b62..3b27d80 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -5,7 +5,7 @@
, url('{{ .RelPermalink }}') center
{{ end }};"
>
- <div class="max-w-screen-md mx-auto px-2 text-white font-serif text-center">
+ <div class="max-w-screen-md mx-auto px-2 text-white font-serif">
{{ if eq .Type "authors" }}
{{ $avatar := index .Params.images 1 }}
{{ if hasPrefix $avatar "http" }}
@@ -20,27 +20,22 @@
alt=""
/>
{{ end }}
- <h1 class="">
- {{ .Params.Name }}
- </h1>
+ <div class="text-center">
+ <h1 class="">{{ .Params.Name }}</h1>
+ <h3 class="font-normal">{{ .Params.role | markdownify }}</h3>
- <h3 class="font-normal">
- {{ .Params.role | markdownify }}
- </h3>
-
- {{ with .Params.Subtitle }}
- <h3 class="">
- {{ . | markdownify }}
- </h3>
- {{ end }}
+ {{ with .Params.Subtitle }}
+ <h3 class="">{{ . | markdownify }}</h3>
+ {{ end }}
- <div class="text-4xl mt-4">
- {{ partial "social_links" .Params }}
+ <div class="text-4xl mt-4">
+ {{ partial "social_links" .Params }}
+ </div>
</div>
{{ else }}
- <h1 class="berkshire-swash">{{ .Title }}</h1>
+ <h1 class="berkshire-swash text-center">{{ .Title }}</h1>
{{ .Content }}
{{ end }}
</div>