Fix theme: CSS specificity, hero_image URL, form include safety

This commit is contained in:
2026-06-17 23:51:52 +02:00
parent 9f4aea9671
commit 74805083e0
3 changed files with 6 additions and 6 deletions
@@ -3,6 +3,6 @@
{% block content %}
<div class="post-form-wrap">
<h1>{{ page.title }}</h1>
{% include 'partials/form.html.twig' %}
{% include 'partials/form.html.twig' ignore missing %}
</div>
{% endblock %}
@@ -14,7 +14,7 @@
</h2>
{% if entry.header.hero_image %}
<div class="entry-thumb">
<img src="{{ entry.url }}/{{ entry.header.hero_image }}" alt="{{ entry.title }}">
<img src="{{ entry.media[entry.header.hero_image].url }}" alt="{{ entry.title }}">
</div>
{% endif %}
<div class="entry-excerpt">