mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 11:32:39 +02:00
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<h1>{% block pagetitle %}{% endblock %}</h1>
|
|
{% if articles %}
|
|
{% for article in articles %}
|
|
{% if loop.index <= DEFAULT_PAGINATION %}
|
|
<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>
|
|
{{ article.content|striptags|truncate(200) }}
|
|
</section>
|
|
{% else %}
|
|
{% if loop.index0 == DEFAULT_PAGINATION %}
|
|
<section>
|
|
<h1>More...</h1>
|
|
<ul>
|
|
{% endif %}
|
|
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></li>
|
|
{% if loop.last %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
No posts found.
|
|
{% endif %}
|
|
{% endblock content %}
|