diff options
author | Andreas Schempp <andreas.schempp@terminal42.ch> | 2015-06-18 20:29:11 +0200 |
---|---|---|
committer | Andreas Schempp <andreas.schempp@terminal42.ch> | 2015-06-18 20:29:11 +0200 |
commit | dbc75f7352e5ff281a8ffbd986bb5e19db3f3ab1 (patch) | |
tree | a39206dfe119c04f1f7ce8a8d6321585821863a5 | |
parent | db841a85783eea52353a1c8425074c489f5e4d27 (diff) | |
download | gitbook-dbc75f7352e5ff281a8ffbd986bb5e19db3f3ab1.zip gitbook-dbc75f7352e5ff281a8ffbd986bb5e19db3f3ab1.tar.gz gitbook-dbc75f7352e5ff281a8ffbd986bb5e19db3f3ab1.tar.bz2 |
Add role and html5 markup for the main navigation
-rw-r--r-- | theme/templates/website/includes/summary.html | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html index 2f72ecf..7c4f288 100644 --- a/theme/templates/website/includes/summary.html +++ b/theme/templates/website/includes/summary.html @@ -35,30 +35,32 @@ <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> |