Browse Source

fixed the image width of article posts in the index

pull/13/head
manetta 5 years ago
parent
commit
2444cd2410
  1. 16
      themes/varia/templates/index.html

16
themes/varia/templates/index.html

@ -26,7 +26,8 @@
<div id="post-list"> <div id="post-list">
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
{% set thumb_size = '/thumb' %} {% set thumb_size = '/thumb' %}
{% if article.category %} {% if article.category %}
{% if article.event_start %} {% if article.event_start %}
{% set event_status = '' %} {% set event_status = '' %}
{% if article.event_start < article.date.now() %} {% if article.event_start < article.date.now() %}
@ -35,14 +36,17 @@
{% if article.event_start >= article.date.now() %} {% if article.event_start >= article.date.now() %}
{% set event_status = ' current' %} {% set event_status = ' current' %}
{% set thumb_size = '/thumb2x' %} {% set thumb_size = '/thumb2x' %}
{% endif %} {% endif %}
{% if article.category == 'article' %}
{% set thumb_size = '/thumb2x' %}
{% endif %}
{% endif %} {% endif %}
{% if article.category == 'article' %}
{% set thumb_size = '/thumb2x' %}
{% endif %}
<article class="hentry {{article.category}}{{event_status}}"> <article class="hentry {{article.category}}{{event_status}}">
{% endif %} {% endif %}
<div class="article-info"> <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> <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 %} {% if article.event_start %}

Loading…
Cancel
Save