mirror of
https://github.com/kittywitch/dork.dev.git
synced 2026-02-09 15:19:18 -08:00
feat: move to using a tree
This commit is contained in:
parent
b253c7ca47
commit
65191fd93c
2 changed files with 43 additions and 46 deletions
26
content/external/external.toml
vendored
26
content/external/external.toml
vendored
|
|
@ -1,43 +1,41 @@
|
||||||
[categories.written]
|
[[categories]]
|
||||||
|
lookup = "written"
|
||||||
title = "Written"
|
title = "Written"
|
||||||
|
[[categories.posts]]
|
||||||
[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"
|
||||||
|
|
||||||
[[posts.written]]
|
[[categories.posts]]
|
||||||
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"
|
||||||
|
|
||||||
[[posts.written]]
|
[[categories.posts]]
|
||||||
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"
|
||||||
|
|
||||||
[[posts.video]]
|
[[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"
|
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"
|
||||||
|
|
||||||
[[posts.video]]
|
[[categories.posts]]
|
||||||
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"
|
||||||
|
|
||||||
[[posts.video]]
|
[[categories.posts]]
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,18 @@
|
||||||
<section id="blogposts">
|
<section id="blogposts">
|
||||||
<h2>Things I find value in sharing</h2>
|
<h2>Things I find value in sharing</h2>
|
||||||
{% set data = load_data(path="content/external/external.toml") %}
|
{% set data = load_data(path="content/external/external.toml") %}
|
||||||
{% for k, v in data.posts %}
|
{% for category in data.categories %}
|
||||||
<section>
|
<section>
|
||||||
{% set cat = data.categories[k] %}
|
<h3>{{ category.title }}</h3>
|
||||||
<h3>{{ cat.title }}</h3>
|
{% if category.note is defined %}
|
||||||
{% if cat.note is defined %}
|
<p>{{ category.note }}</p>
|
||||||
<p>{{ cat.note }}</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for kx in v %}
|
{% for post in category.posts %}
|
||||||
<li>
|
<li>
|
||||||
<article>
|
<article>
|
||||||
<a href="{{kx.permalink | safe}}"><strong>{{ kx.title }}</strong></a>
|
<a href="{{post.permalink | safe}}"><strong>{{ post.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 %}
|
{% 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>
|
</article>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue