blog.notmyidea.org/mnmlist/templates/index.html
Alexis Métaireau 91159ecc80 New version of the website.
- More categories are displayed
- Change the URL Scheme for categories
- Add a view for weeknotes, readings and code.
2023-09-25 16:50:07 +02:00

30 lines
No EOL
1 KiB
HTML

{% extends "base.html" %}
{% block content %}
<h1>{% block pagetitle %}{% endblock %}</h1>
{% if articles %}
{% for article in articles | rejectattr("category", "in", ['weeknotes']) | batch(10) | first %}
<section class="section index">
{% if not HIDE_DATE %}
<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
{% endif %}
{% for tag in article.tags %}
<a class='tag' href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
{% if article.headline %}
{{ article.headline }}
{% else %}
{{ article.summary }}
{% endif %}
</section>
{% endfor %}
<ul>
{% for article in articles[10:] %}
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{
article.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endblock content %}