Commit a3fc627734

a3fc6277345ab1890992dfb1ba05cc513a38a2f6

parent: cd0f20fa2d

Verified · cmc

cmc <hello@cleberg.net> · 2026-03-11 05:06 UTC

Update blog, post, and page templates

Layout: unified · split

theme/templates/blog.html +11 −17
@@ -1,19 +1,13 @@
1{% extends "base.html" %} {% block subtitle %}blog - {% endblock %} {% block
2main %}
1{% extends "base.html" %} {% block subtitle %}blog - {% endblock %} {% block main %}
32<h1>Blog</h1>
4<p>
5 Use <code>⌘ + f</code> (<code>Ctrl + f</code>) to search for
6 keywords.
7</p>
8<p>
9 You can also add the <a href="/feed.xml">RSS Feed</a> to your feed reader.
10</p>
11<br>
3<p class="blog-meta">Use <code>⌘ F</code> / <code>Ctrl F</code> to search &middot; <a href="/feed.xml">RSS Feed</a></p>
4<p class="label">All Posts</p>
5<ul class="post-list">
126{% for post in posts %}
13<div class="post">
14 <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'
15 >{{ post.date|strftime("%Y-%m-%d") }}</time
16 >
17 <a href='{{ url_for("blog", slug=post.slug) }}' data-text="{{ post.title }}">{{ post.title }}</a>
18</div>
19{% endfor %} {% endblock %}
7<li class="post-list-item">
8 <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a>
9 <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time>
10</li>
11{% endfor %}
12</ul>
13{% endblock %}
theme/templates/page.html +3 −6
@@ -1,11 +1,8 @@
11{% extends "base.html" %}
2
3{% block subtitle %}
4 {{ post.title }} -
5{% endblock %}
2{% block subtitle %}{{ post.title }} - {% endblock %}
63{% block main %}
74<article>
8 <h1 data-text="{{ post.title }}">{{ post.title }}</h1>
9 <section>{{ post.html | safe }}</section>
5 <h1>{{ post.title }}</h1>
6 <div class="page-body">{{ post.html | safe }}</div>
107</article>
118{% endblock %}
theme/templates/post.html +10 −8
@@ -6,14 +6,16 @@
66<meta property="og:description" content="{{ post.description }}" />
77{% elif project_description is defined %}
88<meta property="og:description" content="{{ project_description }}" />
9{% endif %} {% endblock %} {% block main %}
9{% endif %}
10{% endblock %}
11{% block main %}
1012<article>
11 <section class="metadata">
12 <b>Object</b> <span>{{ post.title }}</span>
13 <b>Timestamp</b> <span><time datetime='{{ post.date|strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d %H:%M:%S") }}</time></span>
14 <b>Summary</b> <span>{{ post.description }}</span>
15 </section>
16 <section>{{ post.html | safe }}</section>
17 <div class="reply-link"><a href="mailto:hello@cleberg.net">Reply via email &rarr;</a></div>
13 <p class="article-dateline"><time datetime='{{ post.date|strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time></p>
14 <h1 class="article-title">{{ post.title }}</h1>
15 {% if post.description is defined %}
16 <p class="article-standfirst">{{ post.description }}</p>
17 {% endif %}
18 <div class="article-body">{{ post.html | safe }}</div>
19 <div class="reply-link"><a href="mailto:hello@cleberg.net">Reply via email &rarr;</a></div>
1820</article>
1921{% endblock %}