diff --git a/content/legal.rst b/content/legal.rst
index a17143eea..6515e4074 100644
--- a/content/legal.rst
+++ b/content/legal.rst
@@ -1,9 +1,7 @@
:custom-css: legal.css
-:hide_page_toc:
+:hide-page-toc:
:orphan:
-.. hide_page_toc hides the local page toc
-
=====
Legal
=====
diff --git a/extensions/odoo_theme/__init__.py b/extensions/odoo_theme/__init__.py
index 57639caa8..20a5926d2 100644
--- a/extensions/odoo_theme/__init__.py
+++ b/extensions/odoo_theme/__init__.py
@@ -78,13 +78,13 @@ def resolve(old_resolve, tree, docname, *args, **kwargs):
Inspect parent node's siblings to determine whether the node references a toc and, if so,
clear its reference URL. ()
- If the page has the `show_content` metadata, don't clear the reference.
+ If the page has the `show-content` metadata, don't clear the reference.
"""
if _node_docname and any(
isinstance(_subnode, nodes.bullet_list)
for _subnode in _reference_node.parent.parent.children
): # The node references a toc
- if 'show_content' not in tree.env.metadata[_node_docname]:
+ if 'show-content' not in tree.env.metadata[_node_docname]:
_reference_node['refuri'] = '#' # The page must not be accessible
def _set_docname_as_class(_reference_node, _node_docname):
diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html
index 610131580..7c188d451 100644
--- a/extensions/odoo_theme/layout.html
+++ b/extensions/odoo_theme/layout.html
@@ -87,7 +87,7 @@
{% set main_classes = main_classes + meta['classes'].split() %}
{% endif %}
- {% if 'hide_page_toc' in meta %}
+ {% if 'hide-page-toc' in meta %}
{% set main_classes = main_classes + ['o_fullwidth_page'] %}
{% endif %}
@@ -113,7 +113,7 @@
{% endif %}
{# VFE TODO Check if this condition is still needed ??? #}
- {% if pagename not in toc and 'hide_page_toc' not in meta %}
+ {% if pagename not in toc and 'hide-page-toc' not in meta %}