{% extends "base_blog.html" %} {% block title %}{{ M_BLOG_NAME|e }}{% endblock %} {% block head_links %} {{- super() -}} {% if articles_page and articles_page.has_previous() %} {% endif %} {% if articles_page and articles_page.has_next() %} {% endif %} {% endblock %} {% block meta %} {% if M_BLOG_DESCRIPTION %} {% endif %} {% endblock %} {% block social %} {{- super() -}} {# this has to be here otherwise the spacing is all wrong. fuck. #} {% block social_url %} {% endblock %} {% if M_SOCIAL_BLOG_SUMMARY %} {% endif %} {% if M_SOCIAL_IMAGE %} {% endif %} {% endblock %} {% block content %}
{% if articles_page %} {% set article_list = articles_page.object_list %} {% else %} {% set article_list = articles %} {% endif %} {% if not article_list %}

{{ "Congratulations!"|hyphenate(lang='en') }}

{{ "The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :)"|hyphenate(lang='en') }}
{% endif %} {% for article in article_list %}
{% macro header() %}{% include "article_header.html" %}{% endmacro %} {{ header()|rtrim|indent(8) }} {% set show_content = article.content and loop.first and (not articles_page or articles_page.number == 1) and ((article.collapse_first is defined and article.collapse_first != 'True') or (article.collapse_first is not defined and not M_COLLAPSE_FIRST_ARTICLE)) %} {% if show_content %}
{{ article.content|trim }} {% endif %}
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %} {{ footer()|rtrim|indent(10) }}
{% if not show_content %}
{% endif %}
{% endfor %} {% if articles_page and articles_page.has_other_pages() %} {% macro pagination() %}{% include 'pagination.html' %}{% endmacro %} {{ pagination()|rtrim|indent(6) }} {% endif %}
{% endblock %}