[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

View file

@ -11,7 +11,7 @@
<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/default.css" rel="stylesheet">
{% include categoryStyle.html%}
{% include category-style.html %}
</head>
<body>

View file

@ -9,11 +9,11 @@ layout: default
<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;<i class="fas fa-folder"></i>&nbsp;{{ categories.first }}&nbsp;</span>
<span style="background-color:{{category.backColor}};color:{{category.textColor}};">&nbsp;<a class="text-decoration-none" style="color:{{category.textColor}}" href="/blog/category/{{ categories.first }}"><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;">{{ tag }}</span>
<span style="background-color:#171717;color:white;font-family:Rubik;padding:3px;border-radius:10px;"><a class="text-decoration-none" href="blog/tag/{{ tag }}">{{ tag }}</a></span>
{% if tag != tags.last %}
,
{% endif %}

24
_layouts/til-post.html Normal file
View file

@ -0,0 +1,24 @@
---
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 }}