25 lines
707 B
HTML
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 %}
|
|
|