[2024-02-16] Giving posts, weeklinks and til their own homepages

This commit is contained in:
Andrew Conlin 2024-02-16 17:21:50 +00:00
parent 79d4b62e4b
commit 2d69dae08f
4 changed files with 57 additions and 38 deletions

19
blog.html Normal file
View File

@ -0,0 +1,19 @@
---
layout: default
title: blog
permalink: /blog
backlink: false
---
<h2>Posts</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'blog' %}
<li>
<p><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>

View File

@ -4,8 +4,6 @@ title: andrewconl.in
permalink: /
backlink: false
---
This site is designed to be kept as simple as possible.<br>
It is pure HTML/CSS [*], which keeps things small, fast and accessible.<br>
* I use a self-hosted instance of <a href="https://umami.is">umami</a> for analytics. It respects do-not-track signals.<br>
@ -15,39 +13,4 @@ masto: <a rel="me" href="https://mastodon.scot/@andrwcnln">andrwcnln@mastodon.sc
github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
--<br>
<a href="/feed.xml">rss</a><br>
<hr>
<h2>Posts</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'blog' %}
<li>
<p><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</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><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></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><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>

18
til.html Normal file
View File

@ -0,0 +1,18 @@
---
layout: default
title: til
permalink: /til
backlink: false
---
<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><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>

19
weeklinks.html Normal file
View File

@ -0,0 +1,19 @@
---
layout: default
title: weeklinks
permalink: /weeklinks
backlink: false
---
<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><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>