blog/themes/simple/templates/index.html

37 lines
1.2 KiB
HTML
Raw Normal View History

2022-11-03 02:55:14 +00:00
{% extends "base.html" %}
{% block content %}
<section id="content">
{% block content_title %}
<h1>All articles</h1>
2022-11-03 03:36:10 +00:00
<hr class="article-split">
2022-11-03 02:55:14 +00:00
{% endblock %}
<ul id="post-list">
{% for article in articles_page.object_list %}
<li>
<article class="hentry">
<header>
<h3 class="entry-title">
2022-11-03 03:36:10 +00:00
<div>
2022-11-03 02:55:14 +00:00
<span class="small"><time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.date.isoformat().split("T")[0] }} </time></span>
<span class="article-list-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
2022-11-03 03:36:10 +00:00
</div>
<span class="small indent">
<span class="category">{{ article.category }}</span>
<span class="">
{% for tag in article.tags|sort %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}</span>
</span>
2022-11-03 02:55:14 +00:00
</h3>
</header>
</article>
</li>
{% endfor %}
</ul><!-- /#posts-list -->
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endblock content %}