feat: Improved tags; get rid of bootstrap icons and scanlines

- Tags now use horizontal unordered list and have dope hover effect (shoutout to https://libreivan.com)
- Get rid of Bootstrap Icons and Scanlines scss files, the former added extra ~90kb to the stylesheet which I think is bloat, one can use emojis for this, and the scanlines were replaced by much simpler code from https://aroace.space
- Replace fg09 with fg10; it just makes more sense
- Simplify anchor styling
- Update woodpecker.yml to work with Woodpecker 2.0
This commit is contained in:
daudix-UFO
2023-11-26 05:00:38 +03:00
parent 9202b7fe92
commit 2e70914d51
16 changed files with 114 additions and 2314 deletions

View File

@ -1 +0,0 @@
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}"><i class="bi bi-link-45deg"></i></a>

View File

@ -8,16 +8,16 @@
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
</time>
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
{%- for item in taxon %}
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;
<ul class="tags">
<span>&nbsp;</span>
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>

View File

@ -26,13 +26,14 @@
</time>
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<ul class="tags">
<span>&nbsp;</span>
{%-for item in taxon %}
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>

View File

@ -1,32 +1,15 @@
<nav class="nav">
<div class="nav-container">
<a href="{{ config.base_url }}">
{% if config.extra.nav.icons %}
<i class="bi bi-house-fill"></i>
{% endif %}
{{ config.title }}
</a>
<a href="{{ config.base_url }}">{{ config.title }}</a>
<ul>
{% for link in config.extra.nav.links %}
<li>
<a href="{{ link.url }}">
{% if config.extra.nav.icons %}
{% if link.icon %}
<i class="bi bi-{{ link.icon }}"></i>
{% endif %}
{% endif %}
{{ link.name }}
</a>
<a href="{{ link.url }}">{{ link.name }}</a>
</li>
{% endfor %}
{% if config.extra.nav.show_feed %}
<li>
<a href="{{ config.base_url }}/atom.xml">
{% if config.extra.nav.icons %}
<i class="bi bi-rss-fill"></i>
{% endif %}
Feed
</a>
<a href="{{ config.base_url }}/atom.xml">Feed</a>
</li>
{% endif %}
</ul>

View File

@ -3,17 +3,14 @@
{% block content %}
<h1>Tags</h1>
<small> {{ terms | length }} tags in total </small>
<article>
<br />
<br />
{% for tag in terms %}
<small>
<a class="pill" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">
<i class="bi bi-tag-fill"></i>
{{ tag.name }}
</a>
<br />
</small>
{% endfor %}
</article>
<br />
<small>
<ul class="tags">
{% for tag in terms %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">{{ tag.name }}</a>
</li>
{% endfor %}
</ul>
</small>
{% endblock content %}

View File

@ -20,13 +20,14 @@
</time>
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
{%- for item in taxon %}
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
<i class="bi bi-tag-fill"></i>
{{ item }}
</a>&nbsp;
<ul class="tags">
<span>&nbsp;</span>
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>