Browse Source

- the evil e

refactoring
Nico Schottelius 3 years ago
parent
commit
75f9537ea2
  1. 2
      templates/macros/blog.html

2
templates/macros/blog.html

@ -4,7 +4,7 @@
<div class="row">
<div class="col-md-4">
{% set image = post.attachments.images.first() %}
<h2><a href="{{ post|url }}">{% if image %}<img src="{{ image.thumbnail(240)|url }}" alt=""/>{% else %}<div class="blog-post-placeholder"></div>{% endif %}</a></h2>e
<h2><a href="{{ post|url }}">{% if image %}<img src="{{ image.thumbnail(240)|url }}" alt=""/>{% else %}<div class="blog-post-placeholder"></div>{% endif %}</a></h2>
</div>
<div class="col-md-8">
{% if from_index %}<a href="{{ post|url }}"><h2 class="post-title">{{ post.title }}</h2></a>

Loading…
Cancel
Save