feat: rewrite search
This commit is contained in:
parent
ebcaa0d175
commit
6e81e47122
13 changed files with 174 additions and 198 deletions
|
@ -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" }}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Reference in a new issue