phantasmobile/app/templates/archive.html
2023-07-15 13:00:36 +05:30

25 lines
707 B
HTML

{% extends "base.html" %}
{% block content %}
{% for item in items %}
<div class="item">
<a href="{{ item.url }}">
<h1>{{ item.title }}</h1>
<figure>
<img src={{ item.icon }}>
<figcaption>
{{ item.data.title }}
{% if item.data.description %}
<br>
{{ item.data.description }}
{% endif %}
</figcaption>
</figure>
</a>
<div class="description">
{{ item.description | safe}}
</div>
<a href="{{ item.get_absolute_url }}">{{ item.public_comments.count }} comments</a>
</div>
{% endfor %}
{% endblock %}