diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/hero.html | 27 |
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> |