Fixed invalid skip-to-content link on 2nd+ level

This commit is contained in:
squidfunk 2018-10-23 08:39:55 +02:00
parent 15e604f797
commit 13a76c45d6
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
mkdocs-material-3.x.x (2018-xx-xx)
* Fixed #899: Skip-to-content link invalid from 2nd level on
* Fixed #902: Missing URL filter in footer for FontAwesome link
mkdocs-material-3.0.4 (2018-09-03)

View File

@ -102,7 +102,7 @@
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
{% if page.toc | first is defined %}
<a href="{{ (page.toc | first).url | url }}" tabindex="1" class="md-skip">
<a href="{{ (page.toc | first).url }}" tabindex="1" class="md-skip">
{{ lang.t('skip.link.title') }}
</a>
{% endif %}

View File

@ -203,7 +203,7 @@
<!-- Render "skip to content" link -->
{% if page.toc | first is defined %}
<a href="{{ (page.toc | first).url | url }}" tabindex="1"
<a href="{{ (page.toc | first).url }}" tabindex="1"
class="md-skip">
{{ lang.t('skip.link.title') }}
</a>