[30/04/23] sorted category styling and added mastodon link

This commit is contained in:
Andrew Conlin 2023-04-30 13:41:06 +01:00
parent f8e1f5c38d
commit 547dfe4eb3
56 changed files with 594 additions and 4035 deletions

View file

@ -1,24 +0,0 @@
---
layout: default
---
{% assign categories = page.categories %}
{% assign category = site.data.categories[categories.first] %}
{% assign tags = page.tags %}
<p style="font-family:Rubik;font-weight:500;">
<i class="fas fa-calendar"></i>&nbsp;{{ page.date | date_to_string }}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<span style="background-color:{{category.backColor}};color:{{category.textColor}};">&nbsp;<a class="text-decoration-none" style="color:{{category.textColor}}" href="/til"><i class="fas fa-folder"></i>&nbsp;{{ categories.first }}</a>&nbsp;</span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-tag"></i>
{% for tag in tags %}
<span style="background-color:#171717;color:white;font-family:Rubik;padding:3px;border-radius:10px;"><a class="text-decoration-none" href="{{ site.url }}/blog/tag/{{ tag }}">{{ tag }}</a></span>
{% if tag != tags.last %}
,
{% endif %}
{% endfor %}
</p>
<hr>
{{ content }}