fix: make page title <h1> conditional to prevent double headings (v1.0.3)
All checks were successful
Create Release Package / PHP Lint (push) Successful in 1m3s
Create Release Package / Build Release (push) Successful in 1m41s

When plugins inject content via TwigService with empty post.title,
the theme's <h1> is now skipped. Prevents duplicate headings on
plugin-rendered pages that provide their own titles.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-02-11 09:54:16 +01:00
parent 702c0c35f4
commit e3e9b9f2be
3 changed files with 19 additions and 2 deletions

View File

@@ -10,7 +10,9 @@
</figure>
{% endif %}
<h1>{{ post.title }}</h1>
{% if post.title is not empty %}
<h1>{{ post.title }}</h1>
{% endif %}
<div class="post-content">
{{ post.content|raw }}