Files

8 lines
1.2 KiB
HTML

{% extends "base.html" %}{% load slx_brand %}{% block title %}{{ item.title }} · SLUMP X LAND{% endblock %}
{% block content %}<main class="section theme-editorial article"><p class="kicker">{% if item.kind == 'news' %}{{ item.category|default:'Behind the pages' }}{% else %}{{ item.get_kind_display }}{% endif %}</p><h1>{{ item.title|slx_brand }}</h1>
{% if item.summary %}<p class="intro">{{ item.summary|slx_brand }}</p>{% endif %}
<p class="article-byline">{% if item.byline %}By {{ item.byline }} · {% endif %}<time datetime="{{ item.publish_at|date:'c' }}">{{ item.publish_at|date:"M j, Y" }}</time>{% if item.kind == "news" %} · {% include "view-eye.html" with views=item.public_views %}{% endif %}</p>
{% if item.art %}<figure id="post-cover" class="reactable-cover"><img src="{{ item.art.url }}" alt=""><figcaption>React to the cover{% include 'reaction-strip.html' with group=cover_reactions reaction_for='React to blog cover art' %}</figcaption></figure>{% endif %}<div class="article-copy">{{ item.body|slx_brand|linebreaks }}</div>
{% if item.category and item.kind == 'news' %}<p><a href="{% url 'blog' %}?category={{ item.category|urlencode }}">More from {{ item.category }} →</a></p>{% endif %}
{% include 'fan-section.html' %}</main>{% endblock %}