blog/themes/solarized/templates/index.html

52 lines
1.6 KiB
HTML
Raw Permalink 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">
2022-11-03 15:22:57 +00:00
<header class="entry-title">
<div class="entry-list-flex-container">
<div class="entry-list-flex-child date">
<span class="small">
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.date.isoformat().split("T")[0] }}
</time>
</span>
</div>
<div class="entry-list-flex-child">
<h2>
<div>
2022-11-04 20:41:55 +00:00
<span
class="article-list-title{% if article.date.year == article.date.now().year and article.date.month == article.date.now().month %} new{% endif %}"
><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
2022-11-03 15:22:57 +00:00
</div>
</h2>
<span class="small">
2022-11-12 16:41:46 +00:00
<span class="category category-pill">{{ article.category }}</span>
2022-11-03 15:22:57 +00:00
<span class="">
{% for tag in article.tags|sort %}
2022-11-12 16:41:46 +00:00
<span class="tag-pill">{{ tag }}</span>
2022-11-03 15:22:57 +00:00
{% endfor %}</span>
</span>
2022-11-03 03:36:10 +00:00
</div>
2022-11-03 15:22:57 +00:00
</div>
2022-11-03 02:55:14 +00:00
</header>
</article>
</li>
{% endfor %}
</ul><!-- /#posts-list -->
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endblock content %}