summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme/templates/website/includes/header.html2
-rw-r--r--theme/templates/website/includes/summary.html50
-rwxr-xr-xtheme/templates/website/langs.html2
-rw-r--r--theme/templates/website/page.html2
4 files changed, 29 insertions, 27 deletions
diff --git a/theme/templates/website/includes/header.html b/theme/templates/website/includes/header.html
index adaadaf..cb41525 100644
--- a/theme/templates/website/includes/header.html
+++ b/theme/templates/website/includes/header.html
@@ -1,4 +1,4 @@
-<div class="book-header">
+<div class="book-header" role="navigation">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="{{ __("SUMMARY_TOGGLE") }}"><i class="fa fa-align-justify"></i></a>
<a href="#" class="btn pull-left toggle-search" aria-label="{{ __("SEARCH_TOGGLE") }}"><i class="fa fa-search"></i></a>
diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html
index a5bc3c4..c31d69c 100644
--- a/theme/templates/website/includes/summary.html
+++ b/theme/templates/website/includes/summary.html
@@ -26,33 +26,35 @@
{% endmacro %}
<div class="book-summary">
- <div class="book-search">
+ <div class="book-search" role="search">
<input type="text" placeholder="{{ __("SEARCH_PLACEHOLDER") }}" class="form-control" />
</div>
- <ul class="summary">
- {% set _divider = false %}
- {% if options.links.sidebar %}
- {% for linkTitle, link in options.links.sidebar %}
- {% set _divider = true %}
- <li>
- <a href="{{ link }}" target="blank" class="custom-link">{{ linkTitle }}</a>
- </li>
- {% endfor %}
- {% endif %}
+ <nav role="navigation">
+ <ul class="summary">
+ {% set _divider = false %}
+ {% if options.links.sidebar %}
+ {% for linkTitle, link in options.links.sidebar %}
+ {% set _divider = true %}
+ <li>
+ <a href="{{ link }}" target="blank" class="custom-link">{{ linkTitle }}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
- {% if _divider %}
- <li class="divider"></li>
- {% endif %}
+ {% if _divider %}
+ <li class="divider"></li>
+ {% endif %}
- {{ articles(summary.chapters) }}
+ {{ articles(summary.chapters) }}
- {% if options.links.gitbook != false %}
- <li class="divider"></li>
- <li>
- <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
- {{ __("GITBOOK_LINK") }}
- </a>
- </li>
- {% endif %}
- </ul>
+ {% if options.links.gitbook != false %}
+ <li class="divider"></li>
+ <li>
+ <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
+ {{ __("GITBOOK_LINK") }}
+ </a>
+ </li>
+ {% endif %}
+ </ul>
+ </nav>
</div>
diff --git a/theme/templates/website/langs.html b/theme/templates/website/langs.html
index a33d49c..66770ec 100755
--- a/theme/templates/website/langs.html
+++ b/theme/templates/website/langs.html
@@ -7,7 +7,7 @@
{% endblock %}
{% block content %}
-<div class="book-langs-index">
+<div class="book-langs-index" role="navigation">
<div class="inner">
<h3>{{ __("LANGS_CHOOSE") }}</h3>
diff --git a/theme/templates/website/page.html b/theme/templates/website/page.html
index 7f424e1..527e181 100644
--- a/theme/templates/website/page.html
+++ b/theme/templates/website/page.html
@@ -19,7 +19,7 @@
<div class="book-body">
<div class="body-inner">
{% include "includes/header.html" %}
- <div class="page-wrapper" tabindex="-1">
+ <div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
{% block page_inner %}
{% for section in content %}