mirror of
https://github.com/kittywitch/dork.dev.git
synced 2026-02-09 15:19:18 -08:00
feat: categories for external
This commit is contained in:
parent
0a7e78015b
commit
b253c7ca47
2 changed files with 33 additions and 15 deletions
21
content/external/external.toml
vendored
21
content/external/external.toml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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 %}
|
||||||
<li>
|
<section>
|
||||||
<article>
|
{% set cat = data.categories[k] %}
|
||||||
<a href="{{v.permalink | safe}}"><strong>{{ v.title }}</strong></a>
|
<h3>{{ cat.title }}</h3>
|
||||||
{% 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 cat.note is defined %}
|
||||||
</article>
|
<p>{{ cat.note }}</p>
|
||||||
</li>
|
{% endif %}
|
||||||
|
<ul>
|
||||||
|
{% for kx in v %}
|
||||||
|
<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 %}
|
||||||
|
</article>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
|
||||||
</section>
|
</section>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue