feat: categories for external

This commit is contained in:
Kat Inskip 2025-11-09 08:05:20 -08:00
parent 0a7e78015b
commit b253c7ca47
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 33 additions and 15 deletions

View file

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

View file

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