feat: add tags as pagefind filters
This commit is contained in:
parent
0f6224ad79
commit
d61434a9b0
2 changed files with 3 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -19,7 +19,6 @@ meta:
|
|||
---
|
||||
|
||||
{% for tag in collections.tagList %}
|
||||
|
||||
<span>
|
||||
<a href="/tags/{{ tag }}" class="!no-underline">
|
||||
<button class="tag--button">
|
||||
|
|
Reference in a new issue