Cybrkyd's git repositories

page-with-py • commit: 6405e38

commit 6405e38b0e899fab2fe8c1709a67a5676e0b86d938fd6cb0379d9d9b779a60ea
author cybrkyd <vii@cybrkyd.com> 2025-09-24 09:41:40 +0100
committer cybrkyd <vii@cybrkyd.com> 2025-09-24 09:41:40 +0100

Commit Message

archive.html template

📊 Diffstat

pg-py/themes/basic/archive.html 13
1 files changed, 13 insertions(+), 0 deletions(-)

Diff

diff --git a/pg-py/themes/basic/archive.html b/pg-py/themes/basic/archive.html
new file mode 100644
index 0000000..6e2ed52
--- /dev/null
+++ b/pg-py/themes/basic/archive.html
@@ -0,0 +1,13 @@
+ <main class="list-page">
+ <h1>Archive</h1>
+ <p>This is the archive of all posts. It is an optional page, configurable from pa.py</p>
+
+ <ul class="post-list">
+ {% for year, posts in years %}
+ <h2>{{ year }}</h2>
+ {% for post in posts %}
+ <li>{date|format:%d %b %Y} - <a href="{post.url}">{post.title}</a></li>
+ {% endfor %}
+ {% endfor %}
+ </ul>
+ </main>