diff options
| author | soaos <soaos@soaos.dev> | 2025-11-21 21:14:12 -0500 |
|---|---|---|
| committer | soaos <soaos@soaos.dev> | 2025-11-21 21:14:12 -0500 |
| commit | ba76e77d935998e4b128053dcc61d2ed4884cdda (patch) | |
| tree | 5464dccd475404b509f048f4525193a8ff36a715 /templates/blog.html | |
| parent | 6e3a7252608197b6571a56c9b07be09f254e8bae (diff) | |
zola migration
Diffstat (limited to 'templates/blog.html')
| -rw-r--r-- | templates/blog.html | 38 |
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 %} |
