summaryrefslogtreecommitdiff
path: root/templates/blog.html
blob: f6595714764a8185fedcb66857eddc6bb81c082c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 %}