mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
42 lines
No EOL
1.2 KiB
HTML
42 lines
No EOL
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% if category in CATEGORIES_DESCRIPTION.keys() %}
|
|
<h1>{{ CATEGORIES_DESCRIPTION[category][0] }}</h1>
|
|
<p>{{ CATEGORIES_DESCRIPTION[category][1] }}</p>
|
|
{% else %}
|
|
|
|
<h1> {{ category }}</h1>
|
|
{% endif %}
|
|
<section class="section index">
|
|
|
|
{% for article in articles | batch(10) | first %}
|
|
<section class="section index">
|
|
{% if not HIDE_DATE %}
|
|
<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
|
|
{% endif %}
|
|
|
|
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
|
{% if article.headline %}
|
|
{{ article.headline }}
|
|
{% else %}
|
|
{{ article.summary }}
|
|
{% endif %}
|
|
<br />
|
|
{% for tag in article.tags %}
|
|
<a class='tag' href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</section>
|
|
{% endfor %}
|
|
<ul>
|
|
{% for batch in articles | batch(10) %}
|
|
{% if not loop.first %}
|
|
{% for article in batch %}
|
|
|
|
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{
|
|
article.title }}</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endblock %} |