feat: move to using a tree

This commit is contained in:
Kat Inskip 2025-11-09 08:12:16 -08:00
parent b253c7ca47
commit 65191fd93c
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 43 additions and 46 deletions

View file

@ -1,44 +1,42 @@
[categories.written]
[[categories]]
lookup = "written"
title = "Written"
[[categories.posts]]
title = "How To Ask Questions The Smart Way"
author = "Eric S. Raymond, Rick Moen"
permalink = "http://catb.org/~esr/faqs/smart-questions.html"
archive = "https://archive.ph/4Nsm2"
[categories.video]
[[categories.posts]]
title = "Humanity's Endgame"
author = "Henry Wismayer"
permalink = "https://www.noemamag.com/humanitys-endgame/"
archive = "https://archive.ph/wvnUr"
[[categories.posts]]
title = "If all the world were a monorepo"
author = "Julie Tibshirani"
permalink = "https://jtibs.substack.com/p/if-all-the-world-were-a-monorepo"
archive = "https://archive.ph/5ZOw2"
[[categories]]
lookup = "video"
title = "Video"
note = "If any of these videos disappear, reach out to me and I can provide you with a copy of them."
[[categories.posts]]
title = "Microsoft broke my voice"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=LKcT-aQuIFs"
suffix = "YouTube"
[posts]
[[categories.posts]]
title = "Burn After Watching"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=-IargH0hL-s"
suffix = "YouTube"
[[posts.written]]
title = "How To Ask Questions The Smart Way"
author = "Eric S. Raymond, Rick Moen"
permalink = "http://catb.org/~esr/faqs/smart-questions.html"
archive = "https://archive.ph/4Nsm2"
[[posts.written]]
title = "Humanity's Endgame"
author = "Henry Wismayer"
permalink = "https://www.noemamag.com/humanitys-endgame/"
archive = "https://archive.ph/wvnUr"
[[posts.written]]
title = "If all the world were a monorepo"
author = "Julie Tibshirani"
permalink = "https://jtibs.substack.com/p/if-all-the-world-were-a-monorepo"
archive = "https://archive.ph/5ZOw2"
[[posts.video]]
title = "Microsoft broke my voice"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=LKcT-aQuIFs"
suffix = "YouTube"
[[posts.video]]
title = "Burn After Watching"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=-IargH0hL-s"
suffix = "YouTube"
[[posts.video]]
title = "Lost Ephemera - The traces we left behind"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=xbg-Jjfw2Dg"
suffix = "YouTube"
[[categories.posts]]
title = "Lost Ephemera - The traces we left behind"
author = "a_lilian"
permalink = "https://www.youtube.com/watch?v=xbg-Jjfw2Dg"
suffix = "YouTube"

View file

@ -4,19 +4,18 @@
<section id="blogposts">
<h2>Things I find value in sharing</h2>
{% set data = load_data(path="content/external/external.toml") %}
{% for k, v in data.posts %}
{% for category in data.categories %}
<section>
{% set cat = data.categories[k] %}
<h3>{{ cat.title }}</h3>
{% if cat.note is defined %}
<p>{{ cat.note }}</p>
<h3>{{ category.title }}</h3>
{% if category.note is defined %}
<p>{{ category.note }}</p>
{% endif %}
<ul>
{% for kx in v %}
{% for post in category.posts %}
<li>
<article>
<a href="{{kx.permalink | safe}}"><strong>{{ kx.title }}</strong></a>
{% if kx.author is defined %} by {{ kx.author }}{% endif %}{% if kx.archive is defined %} - <a href="{{kx.archive}}">Archive</a> {% endif %}{% if kx.suffix is defined %} ({{ kx.suffix }}){% endif %}
<a href="{{post.permalink | safe}}"><strong>{{ post.title }}</strong></a>
{% if post.author is defined %} by {{ post.author }}{% endif %}{% if post.archive is defined %} - <a href="{{post.archive}}">Archive</a> {% endif %}{% if post.suffix is defined %} ({{ post.suffix }}){% endif %}
</article>
</li>
{% endfor %}