aboutsummaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-05-01 21:45:52 -0500
committerChristian Cleberg <hello@cleberg.net>2024-05-01 21:45:52 -0500
commitdc1261d703ae1e1a14841b030888e3f87ff7c38f (patch)
tree71139c9021b09704b2d45be3b64d54e2acbae55f /templates/blog.html
parentba6b552c8256cc2e071c910ef7821c82443f1f82 (diff)
downloadcleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.gz
cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.bz2
cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.zip
prettier formatting and rewrap lines
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/blog.html b/templates/blog.html
index 184587b..5b1f301 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -3,15 +3,17 @@
{% block content %}
<h1>{{ section.title }}</h1>
<p>Use <code>Ctrl + F</code> to search blog post titles for keywords.</p>
-<p>You can also add the <a href="/atom.xml">Atom RSS Feed</a> to your feed reader.</p>
+<p>You can also add the <a href="/atom.xml">Atom RSS Feed</a> to your feed
+reader.</p>
{% set post_date = "1970-01-01" | date(format="%Y") %}
{% for page in section.pages %}
- {% if post_date != page.date | date(format="%Y") %}
- {% set_global post_date = page.date | date(format="%Y") %}
+{% if post_date != page.date | date(format="%Y") %}
+{% set_global post_date = page.date | date(format="%Y") %}
<h2>{{ post_date }}</h2>
{% endif %}
<div class="post">
- <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time>
+ <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{
+ page.date | date(format='%Y-%m-%d') }}</time>
<a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
</div>
{% endfor %}