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

3 lines
1.0 KiB
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.search_cover %}<img src="{{ chapter.search_cover }}" alt="" loading="lazy">{% elif 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>{% if show_archive_status %}<span class="badge">{% if chapter.pk in rolling_free_ids %}Free to read{% else %}Archive{% endif %}</span>{% endif %}<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>