forked from varia/varia.website
fixed the image width of article posts in the index
This commit is contained in:
parent
1174a869f3
commit
2444cd2410
@ -27,6 +27,7 @@
|
||||
{% for article in articles_page.object_list %}
|
||||
{% set thumb_size = '/thumb' %}
|
||||
{% if article.category %}
|
||||
|
||||
{% if article.event_start %}
|
||||
{% set event_status = '' %}
|
||||
{% if article.event_start < article.date.now() %}
|
||||
@ -36,13 +37,16 @@
|
||||
{% set event_status = ' current' %}
|
||||
{% set thumb_size = '/thumb2x' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if article.category == 'article' %}
|
||||
{% set thumb_size = '/thumb2x' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<article class="hentry {{article.category}}{{event_status}}">
|
||||
|
||||
{% endif %}
|
||||
|
||||
<div class="article-info">
|
||||
<span class="entry-title"><a href="/{% if article.lang == 'en' %}en/{% endif %}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
|
||||
{% if article.event_start %}
|
||||
|
Loading…
Reference in New Issue
Block a user