Fix theme: CSS specificity, hero_image URL, form include safety
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user