Merge "Do not display title string of page local TOC"

This commit is contained in:
Jenkins 2017-07-04 16:32:16 +00:00 committed by Gerrit Code Review
commit 26f32fd0c1
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{%- if theme_sidebar_mode == 'toctree' and theme_display_toc %}
{%- if theme_sidebar_mode == 'toctree' and theme_display_toc and display_toc %}
<h5><a href="{{ pathto(master_doc) }}">Contents</a></h5>
{{ toc }}
{%- endif %}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
The title "Contents" of the page local TOC is now displayed
only when a page has sub-titles.