diff --git a/material/partials/content.html b/material/partials/content.html index d756b647e..ff9eedfa0 100644 --- a/material/partials/content.html +++ b/material/partials/content.html @@ -5,8 +5,7 @@ {% include "partials/tags.html" %} {% endif %} {% include "partials/actions.html" %} -{% set first = page.toc | first %} -{% if first and first.level != 1 %} +{% if "\x3ch1" not in page.content %}

{{ page.title | d(config.site_name, true)}}

{% endif %} {{ page.content }} diff --git a/src/partials/content.html b/src/partials/content.html index 6930a1ed1..6ec8b42d9 100644 --- a/src/partials/content.html +++ b/src/partials/content.html @@ -29,11 +29,10 @@ {% include "partials/actions.html" %} -{% set first = page.toc | first %} -{% if first and first.level != 1 %} +{% if "\x3ch1" not in page.content %}

{{ page.title | d(config.site_name, true)}}

{% endif %}