feat: add tags as pagefind filters

This commit is contained in:
Cory Dransfeldt 2023-08-17 12:13:59 -07:00
parent 0f6224ad79
commit d61434a9b0
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,9 @@
{% for tag in tags %}
{% if tag != "posts" %}
<a href="/tags/{{ tag }}">
<div class="tag--button tag--button__small">{{ tag }}</div>
<div
class="tag--button tag--button__small"
data-pagefind-filter="tag">{{ tag }}</div>
</a>
{% endif %}
{% endfor %}

View file

@ -19,7 +19,6 @@ meta:
---
{% for tag in collections.tagList %}
<span>
<a href="/tags/{{ tag }}" class="!no-underline">
<button class="tag--button">