26 lines
804 B
HTML
26 lines
804 B
HTML
<div class="nfb-article-thumb">
|
|
<a href="{{ article.get_absolute_url }}">
|
|
{% if article.image %}
|
|
<img src="{{ article.image.url }}"
|
|
class="ui fluid image nfb-image-link" />
|
|
{% else %}
|
|
{% endif %}
|
|
</a>
|
|
{% with header=article.get_title_header %}
|
|
<{{ header }}div class="ui header nfb-article-title">
|
|
<a href="{{ article.get_absolute_url }}">
|
|
{{ article.title }}
|
|
</a>
|
|
<div class="sub header">
|
|
{% if article.authors.count %}
|
|
{% for author in article.get_ordered_authors %}
|
|
<strong>{{ author.name }}</strong>{% if not forloop.last %}, {% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
<br>
|
|
{{ article.date }}
|
|
</div>
|
|
</{{ header }}>
|
|
{% endwith %}
|
|
</div>
|