blog/themes/solarized/templates/index.html

69 lines
2.3 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 %}
2023-08-24 18:50:41 +00:00
<h1>Latest From Tyrel</h1>
2022-11-03 03:36:10 +00:00
<hr class="article-split">
2022-11-03 02:55:14 +00:00
{% endblock %}
2023-08-24 18:50:41 +00:00
{% for article in articles_page.object_list[:1] %}
<article class="post-overview">
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<h3><time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b %d, %Y') }}</time></h3>
<div class="excerpt">{{ article.summary }} <a href="{{ SITEURL }}/{{ article.url }}">[read post]</a></div>
</article>
{% endfor %}
<br />
<br />
<br />
2022-11-03 02:55:14 +00:00
2023-08-24 18:50:41 +00:00
<hr class="article-split">
<h2>Older Blog Posts</h2>
<hr class="article-split">
2022-11-03 02:55:14 +00:00
<ul id="post-list">
2023-08-24 18:50:41 +00:00
{% for article in articles_page.object_list[1:] %}
2022-11-03 02:55:14 +00:00
<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>
2023-08-24 18:50:41 +00:00
<div class="entry-list-flex-child category">
<span class="category category-pill">{{ article.category }}</span>
</div>
2022-11-03 15:22:57 +00:00
2023-07-03 05:17:39 +00:00
<div class="entry-list-flex-child entry">
2022-11-03 15:22:57 +00:00
<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>
2023-08-24 18:50:41 +00:00
{# <span class="small"> #}
{# <span class="category category-pill">{{ article.category }}</span> #}
{# <span class=""> #}
{# {% for tag in article.tags|sort %} #}
{# <span class="tag-pill">{{ tag }}</span> #}
{# {% 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 %}