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:
@ -1 +0,0 @@
|
||||
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}"><i class="bi bi-link-45deg"></i></a>
|
@ -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>
|
||||
<ul class="tags">
|
||||
<span>• </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>
|
||||
|
@ -26,13 +26,14 @@
|
||||
</time>
|
||||
{%- if page.taxonomies %}
|
||||
{%- for name, taxon in page.taxonomies %}
|
||||
•
|
||||
<ul class="tags">
|
||||
<span>• </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>
|
||||
<li>
|
||||
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
</small>
|
||||
|
@ -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>
|
||||
|
@ -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 %}
|
||||
|
@ -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>
|
||||
<ul class="tags">
|
||||
<span>• </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>
|
||||
|
Reference in New Issue
Block a user