mirror of
https://github.com/thangisme/notes.git
synced 2024-12-22 03:26:45 -05:00
Merge pull request #376 from MikesCoolOrg/master
Improve accessibility by adding label to Anchor links.
This commit is contained in:
commit
a8f8f8445a
2
_includes/vendor/anchor_headings.html
vendored
2
_includes/vendor/anchor_headings.html
vendored
@ -64,7 +64,7 @@
|
||||
{% capture anchor %}{% endcapture %}
|
||||
|
||||
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
|
||||
{% capture anchor %}href="#{{ html_id}}"{% endcapture %}
|
||||
{% capture anchor %}href="#{{ html_id}}" aria-labelledby="{{ html_id}}"{% endcapture %}
|
||||
|
||||
{% if include.anchorClass %}
|
||||
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
|
||||
|
Loading…
Reference in New Issue
Block a user