{# This is looped to display each acticle in "summary" mode on the index pages. #} {% if HEADING_LEVEL is not defined %} {% set HEADING_LEVEL = 2 %} {% endif -%} {% set DISPLAY_IMAGE = false %}
{% if not article.micro %} {{ article.title }} {% endif %} {% if article.image %} {% set DISPLAY_IMAGE = true %}
{{ article.title|striptags }}
{% elif CATEGORY_IMAGES and article.category in CATEGORY_IMAGES %} {% set DISPLAY_IMAGE = true %}
{% else %}
{% endif -%} {% if not article.micro %} {{- article.summary -}} {% else %} {{- article.content -}} {% endif %}
{% if DISPLAY_IMAGE == true %}
{% else %}
{% endif %}

{% if article.readtime_minutes and not article.micro -%} •  ~{{ article.readtime_minutes }} min to read {% elif article.stats and not article.micro -%} •  ~{{ article.stats['read_mins'] }} min to read {%- endif %} {% if (DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS) or (PELICAN_COMMENT_SYSTEM and PELICAN_COMMENT_SYSTEM_DISPLAY_COUNTS != false and article.comments_count > 0) %} •  {% include 'includes/comment_count.html' %} {% endif -%} {# only display the 'read more' link if there is more to the article #} {% if article.has_summary != false and not article.micro %} •  read more   {% elif article.micro %} •   permalink {% endif %}