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/_default/_markup | |
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/_default/_markup')
-rw-r--r-- | layouts/_default/_markup/render-heading.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 7d1e0ac..8d05760 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,7 @@ <!-- https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24 --> <h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with .Attributes.class }} class="{{ . }}"{{ end }}> - {{ .Text | safeHTML }} <a class="" href="#{{ .Anchor | safeURL }}"> + {{ .Text | safeHTML }} <i class="fa fa-chain" aria-hidden="true"></i> </a> </h{{ .Level }}> |