[09/03/23] tags --> categories, added support for tags, changed category formatting
This commit is contained in:
parent
8c53fbd8d5
commit
a65511d465
16 changed files with 143 additions and 108 deletions
|
@ -2,13 +2,21 @@
|
|||
layout: default
|
||||
---
|
||||
|
||||
{% assign categories = page.categories %}
|
||||
{% assign category = site.data.categories[categories.first] %}
|
||||
|
||||
{% assign tags = page.tags %}
|
||||
|
||||
<p style="font-family:Rubik Mono One;">
|
||||
{{ page.date | date_to_string }} |
|
||||
<p style="font-family:Rubik;font-weight:500;">
|
||||
<i class="fas fa-calendar"></i> {{ page.date | date_to_string }} |
|
||||
<span style="background-color:{{category.backColor}};color:{{category.textColor}};"> <i class="fas fa-folder"></i> {{ categories.first }} </span>
|
||||
|
|
||||
<i class="fas fa-tag"></i>
|
||||
{% for tag in tags %}
|
||||
{% assign currentTag = site.data.tags[tag] %}
|
||||
<span style="background-color:{{currentTag.backColor}};color:{{currentTag.textColor}};">{{ tag }}</span>
|
||||
<span style="background-color:#171717;color:white;font-family:Rubik;padding:3px;border-radius:10px;">{{ tag }}</span>
|
||||
{% if tag != tags.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
<hr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue