From 65191fd93ce99cb1c83b20dc77a7faacae059d20 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sun, 9 Nov 2025 08:12:16 -0800 Subject: [PATCH] feat: move to using a tree --- content/external/external.toml | 74 +++++++++++++++++----------------- templates/external.html | 15 ++++--- 2 files changed, 43 insertions(+), 46 deletions(-) diff --git a/content/external/external.toml b/content/external/external.toml index 2f55e5a..52e75b3 100644 --- a/content/external/external.toml +++ b/content/external/external.toml @@ -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" diff --git a/templates/external.html b/templates/external.html index 71ecb5d..d05013d 100644 --- a/templates/external.html +++ b/templates/external.html @@ -4,19 +4,18 @@

Things I find value in sharing

{% set data = load_data(path="content/external/external.toml") %} - {% for k, v in data.posts %} + {% for category in data.categories %}
- {% set cat = data.categories[k] %} -

{{ cat.title }}

- {% if cat.note is defined %} -

{{ cat.note }}

+

{{ category.title }}

+ {% if category.note is defined %} +

{{ category.note }}

{% endif %}
    - {% for kx in v %} + {% for post in category.posts %}
  • - {{ kx.title }} - {% if kx.author is defined %} by {{ kx.author }}{% endif %}{% if kx.archive is defined %} - Archive {% endif %}{% if kx.suffix is defined %} ({{ kx.suffix }}){% endif %} + {{ post.title }} + {% if post.author is defined %} by {{ post.author }}{% endif %}{% if post.archive is defined %} - Archive {% endif %}{% if post.suffix is defined %} ({{ post.suffix }}){% endif %}
  • {% endfor %}