[template] cleanup
This commit is contained in:
parent
cb3e54a4e0
commit
ba2c4e09f4
3 changed files with 7 additions and 76 deletions
|
|
@ -5,15 +5,12 @@
|
|||
<div class="col-md-4">
|
||||
{% set image = product.attachments.images.first() %}
|
||||
<h2><a href="{{ product|url }}">{% if image %}<img src="{{ image.thumbnail(240)|url }}" alt=""/>{% else %}<div class="blog-post-placeholder"></div>{% endif %}</a></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{% if from_index %}<a href="{{ product|url }}"><h2 class="post-title">{{ post.title }}</h2></a>
|
||||
{% else %}
|
||||
<h2 class="post-title">{{ product.title }}</h2>
|
||||
{% endif %}
|
||||
<p class="post-meta" style="font-size:0.9em;">
|
||||
Posted on {{ product.pub_date }} by {% if product.twitter_handle %}<a href="https://twitter.com/{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{% else %}{{ post.author }} {% endif %}
|
||||
</p>
|
||||
<p class="post-subtitle">
|
||||
<p>
|
||||
{{ product.abstract }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue