mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Fixed case where table of contents icon is missing on mobile navigation
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
type="checkbox" id="toc" />
|
||||
|
||||
<!-- Hack: see partials/toc.html for more information -->
|
||||
{% if toc_ | first is defined %}
|
||||
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
|
||||
{% set toc_ = (toc_ | first).children %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user