diff --git a/openstackdocstheme/theme/openstackdocs/localtoc.html b/openstackdocstheme/theme/openstackdocs/localtoc.html index aaaeae4..2e3dc2a 100644 --- a/openstackdocstheme/theme/openstackdocs/localtoc.html +++ b/openstackdocstheme/theme/openstackdocs/localtoc.html @@ -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 %}
Contents
{{ toc }} {%- endif %} diff --git a/releasenotes/notes/do-not-display-local-toc-title-without-subtitles-4e1fc48705d66289.yaml b/releasenotes/notes/do-not-display-local-toc-title-without-subtitles-4e1fc48705d66289.yaml new file mode 100644 index 0000000..74fbad5 --- /dev/null +++ b/releasenotes/notes/do-not-display-local-toc-title-without-subtitles-4e1fc48705d66289.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + The title "Contents" of the page local TOC is now displayed + only when a page has sub-titles.