fix: apply flat entry-card structure to home.html.twig
This commit is contained in:
@@ -59,8 +59,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if item.type == 'journal' %}
|
{% if item.type == 'journal' %}
|
||||||
<article class="entry-card" id="entry-{{ entry.slug }}" data-lat="{{ entry.header.lat }}" data-lng="{{ entry.header.lng }}">
|
<a class="entry-card" id="entry-{{ entry.slug }}" data-lat="{{ entry.header.lat }}" data-lng="{{ entry.header.lng }}" href="{{ entry.url }}">
|
||||||
<a class="entry-card-inner" href="{{ entry.url }}">
|
|
||||||
{% if hero %}
|
{% if hero %}
|
||||||
<div class="entry-card-photo">
|
<div class="entry-card-photo">
|
||||||
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">
|
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">
|
||||||
@@ -98,11 +97,9 @@
|
|||||||
<p class="entry-excerpt">{{ entry.summary|striptags|slice(0, 250)|trim }}</p>
|
<p class="entry-excerpt">{{ entry.summary|striptags|slice(0, 250)|trim }}</p>
|
||||||
<span class="entry-read-more">Read entry →</span>
|
<span class="entry-read-more">Read entry →</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<article class="entry-card entry-card--story" id="entry-{{ entry.slug }}">
|
<a class="entry-card entry-card--story" id="entry-{{ entry.slug }}" href="{{ entry.url }}">
|
||||||
<a class="entry-card-inner" href="{{ entry.url }}">
|
|
||||||
{% if hero %}
|
{% if hero %}
|
||||||
<div class="entry-card-photo entry-card-photo--story">
|
<div class="entry-card-photo entry-card-photo--story">
|
||||||
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">
|
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">
|
||||||
@@ -112,8 +109,7 @@
|
|||||||
<span class="story-badge">✦ Story</span>
|
<span class="story-badge">✦ Story</span>
|
||||||
<h2 class="entry-title">{{ entry.title }}</h2>
|
<h2 class="entry-title">{{ entry.title }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user