[12/03/23] added subdomains for blog and til, sorted category links accordingly

This commit is contained in:
Andrew Conlin 2023-03-12 18:31:00 +00:00
parent 66983f0a5c
commit 56514e3cef
46 changed files with 3106 additions and 48 deletions

24
blog/index.html Normal file
View file

@ -0,0 +1,24 @@
---
layout: default
title: latest posts
permalink: /blog
---
<hr>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign categories = post.categories %}
{% assign category = site.data.categories[categories.first] %}
<li>
<h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
<div style="font-family:Rubik;font-weight:500;">
<i class="fas fa-calendar"></i>&nbsp;{{ post.date | date_to_string }}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<span style="background-color:{{category.backColor}};color:{{category.textColor}};">&nbsp;<i class="fas fa-folder"></i>&nbsp;{{ categories.first }}&nbsp;</span>
</div>
{{ post.content | strip_html | truncatewords: 30 }}
<br>
<br>
</li>
{% endfor %}
</ul>