Fix theme: CSS specificity, hero_image URL, form include safety
This commit is contained in:
@@ -56,9 +56,9 @@ body {
|
|||||||
margin-bottom: 0.4rem;
|
margin-bottom: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
|
.entry-card .entry-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
|
||||||
.entry-title a { color: inherit; text-decoration: none; }
|
.entry-card .entry-title a { color: inherit; text-decoration: none; }
|
||||||
.entry-title a:hover { text-decoration: underline; }
|
.entry-card .entry-title a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
.entry-thumb { margin-bottom: 0.75rem; }
|
.entry-thumb { margin-bottom: 0.75rem; }
|
||||||
.entry-thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
|
.entry-thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
|
||||||
@@ -76,7 +76,7 @@ body {
|
|||||||
/* Single entry */
|
/* Single entry */
|
||||||
.entry-header { margin-bottom: 1.5rem; }
|
.entry-header { margin-bottom: 1.5rem; }
|
||||||
.entry-header .entry-date { margin-bottom: 0.5rem; }
|
.entry-header .entry-date { margin-bottom: 0.5rem; }
|
||||||
.entry-title { font-size: 1.8rem; }
|
.entry .entry-title { font-size: 1.8rem; }
|
||||||
.entry-body { margin-bottom: 2rem; }
|
.entry-body { margin-bottom: 2rem; }
|
||||||
.entry-body p { margin-bottom: 1em; }
|
.entry-body p { margin-bottom: 1em; }
|
||||||
.entry-body img { max-width: 100%; height: auto; border-radius: 4px; }
|
.entry-body img { max-width: 100%; height: auto; border-radius: 4px; }
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="post-form-wrap">
|
<div class="post-form-wrap">
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
{% include 'partials/form.html.twig' %}
|
{% include 'partials/form.html.twig' ignore missing %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
{% if entry.header.hero_image %}
|
{% if entry.header.hero_image %}
|
||||||
<div class="entry-thumb">
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="entry-excerpt">
|
<div class="entry-excerpt">
|
||||||
|
|||||||
Reference in New Issue
Block a user