Removed level 1 headline hack in content partial

This commit is contained in:
squidfunk
2023-01-02 11:27:41 +01:00
parent 39013249a5
commit b95dffa5cd
3 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,8 @@
{% include "partials/tags.html" %}
{% endif %}
{% include "partials/actions.html" %}
{% if "\x3ch1" not in page.content %}
{% set first = page.toc | first %}
{% if first and first.level != 1 %}
<h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}
{{ page.content }}