--ISO DATES-- [24/01/29] Creating weeklinks category, homepage now displays categories

This commit is contained in:
Andrew Conlin 2024-01-29 12:18:28 +00:00
parent 32f80e3feb
commit 6e608b86a5
8 changed files with 44 additions and 36 deletions

@ -28,8 +28,18 @@ defaults:
permalink: til/:title/ permalink: til/:title/
category: til category: til
layout: post layout: post
# weeklinks
- scope:
path: "_posts/weeklinks"
type: posts
values:
permalink: blog/:year/:month/:day/:title/
category: weeklinks
layout: post
feed: feed:
categories: categories:
- blog - blog
- til - til

@ -1,6 +1,6 @@
--- ---
title: Weeklinks 001 - Philosophy, grief and macaques title: Weeklinks 001 - Philosophy, grief and macaques
category: blog category: weeklinks
layout: post layout: post
--- ---

@ -1,6 +1,6 @@
--- ---
title: Weeklinks 002 - Trains, iPods and plagiarism title: Weeklinks 002 - Trains, iPods and plagiarism
category: blog category: weeklinks
layout: post layout: post
--- ---

@ -1,6 +1,6 @@
--- ---
title: Weeklinks 003 - Bryan, Cory and Mickey title: Weeklinks 003 - Bryan, Cory and Mickey
category: blog category: weeklinks
layout: post layout: post
--- ---

@ -1,6 +1,6 @@
--- ---
title: Weeklinks 004 - Obfuscation, dial-up and tiny chess title: Weeklinks 004 - Obfuscation, dial-up and tiny chess
category: blog category: weeklinks
layout: post layout: post
--- ---

@ -14,9 +14,10 @@ email: <a href="mailto:andrew@andrewconl.in">andrew@andrewconl.in</a><br>
masto: <a rel="me" href="https://mastodon.scot/@andrwcnln">andrwcnln@mastodon.scot</a><br> masto: <a rel="me" href="https://mastodon.scot/@andrwcnln">andrwcnln@mastodon.scot</a><br>
github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br> github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
--<br> --<br>
<a href="/til">til</a> · <a href="/feed/blog.xml">rss</a><br> <a href="/feed/blog.xml">rss</a><br>
<br> <br>
<hr> <hr>
<h2>Posts</h2>
<ul style="list-style-type:none;margin:0;padding:0;"> <ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %} {% for post in site.posts %}
{% assign category = post.category %} {% assign category = post.category %}
@ -27,3 +28,27 @@ github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
<hr>
<h2>Weeklinks</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'weeklinks' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>
<h2>TIL</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'til' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>

@ -1,5 +0,0 @@
---
layout: default
title: Miscellaneous
backlink: true
---

@ -1,22 +0,0 @@
---
layout: default
title: TILs
permalink: /til/
backlink: true
---
My collection of TILs (Today-I-Learned). I use this mainly to collect solutions to weird errors I have faced, and detail the little projects that I work on. This has its own atom feed (above) as they are typically very different from my other posts. All TILs are blog posts but not all blog posts are TILs.<br>
--<br>
<a href="/feed/til.xml">rss</a><br>
<br>
<hr>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'til' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>