aboutsummaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-04-27 17:01:13 -0500
committerChristian Cleberg <hello@cleberg.net>2024-04-27 17:01:13 -0500
commit74992aaa27eb384128924c4a3b93052961a3eaab (patch)
treed5193997d72a52f7a6d6338ea5da8a6c80b4eddc /templates/blog.html
parent3def68d80edf87e28473609c31970507d9f03467 (diff)
downloadcleberg.net-74992aaa27eb384128924c4a3b93052961a3eaab.tar.gz
cleberg.net-74992aaa27eb384128924c4a3b93052961a3eaab.tar.bz2
cleberg.net-74992aaa27eb384128924c4a3b93052961a3eaab.zip
test conversion back to markdown
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..184587b
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+
+{% 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>
+{% 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") %}
+ <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>
+ <a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
+ </div>
+{% endfor %}
+{% endblock content %}