diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index 0c1a31f44..c0ccb1a51 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -79,6 +79,10 @@ {%- set main_classes = main_classes + ['o_index'] %} {%- endif %} + {%- if 'show-content' in meta %} {# The page is an accessible toctree #} + {%- set main_classes = main_classes + ['o_hide_toc'] %} + {%- endif %} + {%- if 'code-column' in meta %} {# The page contains a 'memento' (dynamic side block) #} {%- set main_classes = main_classes + ['o_has_code_column'] %} {%- endif %} @@ -110,7 +114,8 @@ {%- endif %} {%- if 'hide-page-toc' not in meta %} -