feat(html): Adding roles to the standard HTML

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-12-07 01:28:12 +04:00
parent 1cead691ca
commit ad75962731
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 11 additions and 4 deletions

View File

@ -6,11 +6,13 @@ layout: default
<!-- Header -->
<header>
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
<h1 aria-level="1" role="heading">
{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</h1>
</header>
<!-- Content -->
<section>
<section role="article">
{{ content }}
</section>

View File

@ -6,12 +6,17 @@ layout: default
<!-- Header -->
<header>
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
<h1 aria-level="1" role="heading">
{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</h1>
</header>
<!-- Content -->
<section>
<section role="article">
{{ content }}
</section>
<!-- Comments -->
{% include disqus.html %}
</article>