feat: rewrite search

This commit is contained in:
Cory Dransfeldt 2024-03-18 14:55:55 -07:00
parent ebcaa0d175
commit 6e81e47122
No known key found for this signature in database
13 changed files with 174 additions and 198 deletions

View file

@ -76,9 +76,9 @@ pagination:
size: 8
---
{% for link in pagination.items %}
<article class="h-entry" data-pagefind-body>
<article class="h-entry">
<a class="no-underline" href="{{ link.url }}">
<h2 class="flex--centered" data-pagefind-meta="title">{{ link.title }}</h2>
<h2 class="flex--centered">{{ link.title }}</h2>
</a>
<time class="dt-published" datetime="{{ link.date }}">
{{ link.date | date: "%m.%Y" }}

View file

@ -51,7 +51,7 @@ The partial displays up to `10` tags:
```liquid
{% assign filteredTags = tags | filterTags %}
{% for tag in filteredTags limit: 10 %}
<a class="tag" href="/tags/{{ tag | downcase }}" data-pagefind-filter="tags">{{ tag | formatTag }}</a>
<a class="tag" href="/tags/{{ tag | downcase }}">{{ tag | formatTag }}</a>
{% endfor %}
```
{% endraw %}