36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
|
|
{% extends "base.html" %}
|
||
|
|
{% block content %}
|
||
|
|
<section id="content">
|
||
|
|
{% block content_title %}
|
||
|
|
{% endblock %}
|
||
|
|
|
||
|
|
{% set icon_map = {
|
||
|
|
'gonzo': 'nf-md-typewriter',
|
||
|
|
'place': 'nf-fa-map',
|
||
|
|
'random': 'nf-fa-dice_d20',
|
||
|
|
'txt': 'nf-cod-terminal',
|
||
|
|
'machines': 'nf-cod-circuit_board',
|
||
|
|
'endtimes': 'nf-md-radioactive',
|
||
|
|
'infra': 'nf-fa-network_wired',
|
||
|
|
'odds': 'nf-cod-folder'
|
||
|
|
} %}
|
||
|
|
|
||
|
|
{% for article in articles_page.object_list %}
|
||
|
|
|
||
|
|
<article class="hentry">
|
||
|
|
<header>
|
||
|
|
<h2 class="entry-title">
|
||
|
|
{% set icon_class = icon_map.get(article.category|string|lower) %}
|
||
|
|
{% if icon_class %}<i class="nf {{ icon_class }}"></i>{% endif %}
|
||
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||
|
|
</h2>
|
||
|
|
<abbr class="published" title="{{ article.date.isoformat() }}">[{{ article.locale_date }}] </abbr>
|
||
|
|
<span class="entry-summary">{{ article.summary }}</span>
|
||
|
|
</header>
|
||
|
|
</article>
|
||
|
|
{% endfor %}
|
||
|
|
|
||
|
|
{% include 'pagination.html' %}
|
||
|
|
</section><!-- /#content -->
|
||
|
|
{% endblock content %}
|