This repository has been archived on 2025-02-09. You can view files and clone it, but cannot push or open issues or pull requests.
kyanite/templates/posts_listing.html

42 lines
1.3 KiB
HTML
Raw Normal View History

2023-02-05 02:05:42 -08:00
{% extends "base.html" %}
{% block title %}Posts{% endblock %}
2023-02-08 01:45:31 -08:00
{% block opengraph %}
<meta property="og:title" content="Posts" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Listing of all posts" />
{% endblock %}
2023-02-05 02:05:42 -08:00
{% block description %}Listing of all posts{% endblock %}
{% block content %}
2023-02-10 07:10:21 -08:00
<div class="posts-header">
<h1>Posts</h1>
<a href="/posts/rss.xml" class="rss-button">RSS</a>
</div>
2023-02-05 02:05:42 -08:00
{% if posts.len() == 0 %}
<i>Nothing to see here!</i>
{% else %}
<ul class="post">
{% for post in posts %}
<li>
<div>
<a class="post" href="/post/{{post.slug}}">
<span><b>{{post.title}}</b> — Published: {{post.published}}</span>
{% match post.summary %}
{% when Some with (summary) %}
<p>{{summary}}</p>
{% when None %}
{% endmatch %}
</a>
</div>
{% if !loop.last %}
<div class="post-hr" />
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
2023-02-05 02:05:42 -08:00
{% endblock %}