{% extends "base_blog.html" %} {%- macro article_content_block() -%} {% block article_content -%} {{- article.content|trim -}} {%- endblock %} {%- endmacro -%} {% block title %}{{ article.title }} | {{ M_BLOG_NAME|e }}{% endblock %} {% block head_links %} {{- super() -}} {# don't mind me, I'm just fixing whitespace from the previous line #} {% endblock %} {% block meta %} {% if article.description %} {% endif %} {% endblock %} {% block social %} {{- super() -}} {% if article.author and article.author.twitter %} {% endif %} {% if article.author and article.author.twitter_id %} {% endif %} {% if article.summary %} {% endif %} {% if article.cover %} {% elif article.category.image %} {% elif M_SOCIAL_IMAGE %} {% endif %} {% if not article.cover %} {% endif %} {% endblock %} {% macro badges() %}{% include "article_badges.html" %}{% endmacro %} {% block content %} {% if article.cover %}
{{ article.locale_date|e }}{% if article.status == 'draft' %} draft{% endif %}
{% if article.authors %}
{% for author in article.authors %}{{ author|e }}{% endfor %}
{% endif %}
{% set title = article.title.split(' — ') %}

{{ title[0] }}

{% if title|length >= 2 %}

{{ title[1] }}

{% endif %}
{% if article.summary and ((article.hide_summary is defined and article.hide_summary != 'True') or (article.hide_summary is not defined and not M_HIDE_ARTICLE_SUMMARY)) %}
{{ article.summary|trim|indent(12) }}
{% endif %}
{% if article.content %}
{% if article.archived == 'True' and M_ARCHIVED_ARTICLE_BADGE %} {{ M_ARCHIVED_ARTICLE_BADGE|render_rst|replace('{year}', article.date.year)|indent(8) }} {% endif %} {{ article_content_block() }} {% if article.category.badge or (article.author and article.author.badge) %} {{ badges()|rtrim|indent(10) }} {% endif %}
{% endif %}
{% else %}
{% macro header() %}{% include "article_header.html" %}{% endmacro %} {{ header()|rtrim|indent(6) }}
{% if article.archived == 'True' and M_ARCHIVED_ARTICLE_BADGE %} {{ M_ARCHIVED_ARTICLE_BADGE|render_rst|replace('{year}', article.date.year)|rtrim|indent(6) }} {% endif %} {% if article.content %} {{ article_content_block() }} {% endif %} {% if article.category.badge or (article.author and article.author.badge) %} {{ badges()|rtrim|indent(6) }} {% endif %}
{% endif %} {% endblock %}