diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-21 22:10:30 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-21 22:34:22 +0100 |
commit | 9bde0f26da8567f63826e6b7d69190c7fb0a2209 (patch) | |
tree | 7c65d64a12fc5d6e46eab85a12c4d74565e1d0ff /layouts/partials | |
parent | 2461f409199ca27267184c115350988a2db1a1fe (diff) | |
download | hugo-minimalist-theme-9bde0f26da8567f63826e6b7d69190c7fb0a2209.tar.gz hugo-minimalist-theme-9bde0f26da8567f63826e6b7d69190c7fb0a2209.tar.bz2 hugo-minimalist-theme-9bde0f26da8567f63826e6b7d69190c7fb0a2209.zip |
accessibility
- More contrast on links and code on main-content
- Headings in content are links and styled instead of only the anchor
chain at the end
- Author card uses a & p, instead of abusing heading tag, since it does
no belong to content and evidences no hierarchy.
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/author_card.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html index b23c3e7..10a6c06 100644 --- a/layouts/partials/author_card.html +++ b/layouts/partials/author_card.html @@ -5,14 +5,17 @@ src="{{ .avatar }}" class="rounded-full w-16 mx-auto md:m-4" alt="{{ .name }}" + loading="lazy" /> <div class=""> - <h5 class="my-0 berkshire-swash"> - <a href="{{ (default .path .homepage) }}" class=""> - {{ .name }} - </a> - </h5> - <h6 class="font-light p-0 m-0">{{ .role | markdownify }}</h6> + <a + class="my-0 berkshire-swash text-xl font-bold my-4" + href="{{ (default .path .homepage) }}" + class="" + > + {{ .name }} + </a> + <p class="text-lg font-light p-0 m-0">{{ .role | markdownify }}</p> <p class="mt-3"> {{ .bio }} </p> |