Files
slump-x-land-studio/templates/chapter-cards.html
T

3 lines
827 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% load slx_brand %}
<div class="cards">{% for chapter in chapters %}<article class="card chapter-card"><a class="card-main" href="{% url 'chapter' chapter.number %}">{% if chapter.cover %}<img src="{{ chapter.cover.url }}" alt="" loading="lazy">{% endif %}<div><span class="kicker">#{{ chapter.number|stringformat:"03d" }}</span><h3>{{ chapter.title|slx_brand }}</h3><time datetime="{{ chapter.publish_at|date:'c' }}">{{ chapter.publish_at|date:"M j, Y" }}</time> {% if chapter.public_views != None %}{% include "view-eye.html" with views=chapter.public_views %}{% endif %}</div></a><div class="card-foot"><a href="{% url 'chapter-discussion' chapter.number %}#discussion">Fan discussion →</a></div></article>{% empty %}<p>{{ empty_text|default:"Chapters will appear here when they’re published." }}</p>{% endfor %}</div>