mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed empty list in table of contents when no headline is defined
This commit is contained in:
parent
bf227de93e
commit
cf8e992c24
@ -2,6 +2,7 @@ mkdocs-material-0.2.1 (2016-03-12)
|
|||||||
|
|
||||||
* Fixed #10: Invisible header after closing search bar with ESC key
|
* Fixed #10: Invisible header after closing search bar with ESC key
|
||||||
* Fixed #13: Table cells don't wrap
|
* Fixed #13: Table cells don't wrap
|
||||||
|
* Fixed empty list in table of contents when no headline is defined
|
||||||
* Corrected wrong path for static asset monitoring in Gulpfile.js
|
* Corrected wrong path for static asset monitoring in Gulpfile.js
|
||||||
* Set up tracking of site search for Google Analytics
|
* Set up tracking of site search for Google Analytics
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{% if h1 %}
|
{% if h1 %}
|
||||||
{% set toc = (toc | first).children %}
|
{% set toc = (toc | first).children %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if toc %}
|
{% if toc and (toc | first) %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for toc_item in toc %}
|
{% for toc_item in toc %}
|
||||||
<li class="anchor">
|
<li class="anchor">
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Render anchors of active page -->
|
<!-- Render anchors of active page -->
|
||||||
{% if toc %}
|
{% if toc and (toc | first) %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for toc_item in toc %}
|
{% for toc_item in toc %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user