summaryrefslogtreecommitdiff
path: root/templates/blog.html
blob: ff44e08b5325f63bb86efd4029729b8257d5d964 (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
{% 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">
        {% for year, posts in section.pages | group_by(attribute="year") %}
        <li>
          <details open>
            <summary><b>{{ year }}</b></summary>
            <ul>
              {% for post in posts %}
              <li>
                <a href="{{post.permalink}}">{{post.title}}</a> - {{post.date}}
              </li>
              {% endfor %}
            </ul>
          </details>
        </li>
        {% endfor %}
      </ul>
    </div>
  </div>
</div>
{% endblock content %}