--ISO DATES-- [24/01/29] Creating weeklinks category, homepage now displays categories
This commit is contained in:
parent
32f80e3feb
commit
6e608b86a5
8 changed files with 44 additions and 36 deletions
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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue