diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-01-08 20:11:17 -0600 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-01-08 20:11:17 -0600 |
commit | 25945b8fead989cca09a23983623b63ce36dcc0c (patch) | |
tree | 0dfc869ce8b028e04ce9da196af08779780915ce /templates/section.html | |
parent | 22b526be60bf4257c2a1d58a5fad59cf6b044375 (diff) | |
download | cleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.tar.gz cleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.tar.bz2 cleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.zip |
feat: total re-write from Emacs org-mode to Zola markdown
Diffstat (limited to 'templates/section.html')
-rw-r--r-- | templates/section.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..70e8cb1 --- /dev/null +++ b/templates/section.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. +<br>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 }}</time> + <a href="/blog/{{ page.slug }}/">{{ page.title }}</a> + </div> +{% endfor %} +{% endblock content %} |