summaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..f659571
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,38 @@
+{% extends "base.html" %} {% block content %}
+<div class="window">
+ <div class="title-bar">
+ <div class="title-bar-text">📖 Blog</div>
+ <div class="title-bar-controls">
+ <a href="/"><button aria-label="Close"></button></a>
+ </div>
+ </div>
+ <div class="window-body">
+ <p>
+ Welcome to my blog! This is where I'll post longer content about stuff I'm
+ working on. I'm working out some channels for posting day-to-day short
+ form shit too so keep an eye out for that.
+ </p>
+ <h2>Latest Posts</h2>
+ <div class="sunken-panel">
+ <ul class="tree-view" style="height: 8rem; overflow-y: scroll">
+ {% set current_year = now() | date(format="%Y") | int %} {% for i in
+ range(start=0, end=current_year - 2024) %}
+ <li>
+ <details open>
+ <summary><b>{{current_year - i}}</b></summary>
+ <ul>
+ {% for post in section.pages %} {% if post.year == current_year -
+ i %}
+ <li>
+ <a href="{{post.permalink}}">{{post.title}}</a> - {{post.date}}
+ </li>
+ {% endif %} {% endfor %}
+ </ul>
+ </details>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+</div>
+{% endblock content %}