--ISO DATES-- [24/01/29] Creating weeklinks category, homepage now displays categories
This commit is contained in:
parent
32f80e3feb
commit
6e608b86a5
12
_config.yml
12
_config.yml
@ -28,8 +28,18 @@ defaults:
|
||||
permalink: til/:title/
|
||||
category: til
|
||||
layout: post
|
||||
# weeklinks
|
||||
- scope:
|
||||
path: "_posts/weeklinks"
|
||||
type: posts
|
||||
values:
|
||||
permalink: blog/:year/:month/:day/:title/
|
||||
category: weeklinks
|
||||
layout: post
|
||||
|
||||
|
||||
feed:
|
||||
categories:
|
||||
- blog
|
||||
- til
|
||||
- til
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Weeklinks 001 - Philosophy, grief and macaques
|
||||
category: blog
|
||||
category: weeklinks
|
||||
layout: post
|
||||
---
|
||||
|
||||
@ -27,4 +27,4 @@ Without further ado:
|
||||
- And finally (for a happier ending): enjoy [these excellent photos](https://time.com/3148/these-monkeys-are-having-the-best-spa-day-ever/) of Japanese macaques in a hot spring. I especially like this [almost biblical one](https://api.time.com/wp-content/uploads/2014/01/japanese-macaque-snow-monkeys-spa-day-3.jpg).
|
||||
|
||||
Thanks for reading!<br>
|
||||
A.
|
||||
A.
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Weeklinks 002 - Trains, iPods and plagiarism
|
||||
category: blog
|
||||
category: weeklinks
|
||||
layout: post
|
||||
---
|
||||
|
||||
@ -25,4 +25,4 @@ A.
|
||||
|
||||
<hr>
|
||||
|
||||
[^1]: It is artificial, but certainly not intelligence. Just statistics.
|
||||
[^1]: It is artificial, but certainly not intelligence. Just statistics.
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Weeklinks 003 - Bryan, Cory and Mickey
|
||||
category: blog
|
||||
category: weeklinks
|
||||
layout: post
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Weeklinks 004 - Obfuscation, dial-up and tiny chess
|
||||
category: blog
|
||||
category: weeklinks
|
||||
layout: post
|
||||
---
|
||||
|
29
index.html
29
index.html
@ -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>
|
||||
github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
|
||||
--<br>
|
||||
<a href="/til">til</a> · <a href="/feed/blog.xml">rss</a><br>
|
||||
<a href="/feed/blog.xml">rss</a><br>
|
||||
<br>
|
||||
<hr>
|
||||
<h2>Posts</h2>
|
||||
<ul style="list-style-type:none;margin:0;padding:0;">
|
||||
{% for post in site.posts %}
|
||||
{% assign category = post.category %}
|
||||
@ -26,4 +27,28 @@ github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
|
22
til.html
22
til.html
@ -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>
|
Loading…
x
Reference in New Issue
Block a user