feat: fix sections

This commit is contained in:
Kat Inskip 2025-11-09 13:57:22 -08:00
parent 8ef43c8de1
commit e07f15d555
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 21 additions and 3 deletions

View file

@ -1,7 +1,7 @@
+++
title = "My writings"
title = "Writings"
sort_by = "date"
template = "blog.html"
template = "writings.html"
page_template = "page.html"
draft = false
+++

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
<section id="blogposts">
<section id="external">
<h2>Things I find value in sharing</h2>
{% set data = load_data(path="content/external/external.toml") %}
{% for category in data.categories %}

18
templates/writings.html Normal file
View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<section id="writings">
<h2>Writings</h2>
<ul>
{% for post in section.pages %}
<li>
<article>
<a href="{{post.permalink | safe}}"><h3>{{ post.title }}</h3></a>
<p>Posted: <time>{{ post.date }}</time></p>
</article>
</li>
{% endfor %}
</ul>
</section>
{% endblock content %}