[12/03/23] added subdomains for blog and til, sorted category links accordingly
This commit is contained in:
parent
66983f0a5c
commit
56514e3cef
46 changed files with 3106 additions and 48 deletions
|
@ -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>
|
||||
|
|
|
@ -9,11 +9,11 @@ layout: default
|
|||
|
||||
<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>
|
||||
<span style="background-color:{{category.backColor}};color:{{category.textColor}};"> <a class="text-decoration-none" style="color:{{category.textColor}}" href="/blog/category/{{ categories.first }}"><i class="fas fa-folder"></i> {{ categories.first }}</a> </span>
|
||||
|
|
||||
<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
24
_layouts/til-post.html
Normal 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> {{ page.date | date_to_string }} |
|
||||
<span style="background-color:{{category.backColor}};color:{{category.textColor}};"> <a class="text-decoration-none" style="color:{{category.textColor}}" href="/til"><i class="fas fa-folder"></i> {{ categories.first }}</a> </span>
|
||||
|
|
||||
<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 }}
|
Loading…
Add table
Add a link
Reference in a new issue