Skip to content

Commit 8971a33

Browse files
committedApr 7, 2024
fix(search): improve search indexing
1 parent 498e573 commit 8971a33

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
 

‎content/plugin.njk

+8-5
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@
3636
}
3737
---
3838

39+
{% if plugin.latest == undefined %}
40+
<div class="flex flex-col gap-5 py-5 px-6 lg:flex-row" data-pagefind-body>
41+
{% else %}
3942
<div class="flex flex-col gap-5 py-5 px-6 lg:flex-row">
40-
43+
{% endif %}
4144
<div class="flex flex-col gap-2 grow">
42-
<div class="flex flex-row justify-center gap-1 mb-3 p-4 text-center bg-warning rounded">
45+
<div class="flex flex-row justify-center gap-1 mb-3 p-4 text-center bg-warning rounded" data-pagefind-ignore>
4346
<div class="pt-px">
4447
{% include "icons/warning.svg" %}
4548
</div>
@@ -79,7 +82,7 @@
7982

8083
<hr/>
8184

82-
<div class="flex flex-col gap-2">
85+
<div class="flex flex-col gap-2" data-pagefind-ignore>
8386
<h2>Versions</h2>
8487
<div class="flex flex-col rounded-lg overflow-hidden border border-border">
8588
<div class="grid grid-cols-2 lg:grid-cols-3 bg-dark-tiles text-white text-xs uppercase py-1 px-2 font-bold">
@@ -122,7 +125,7 @@
122125
</div>
123126
</div>
124127

125-
<div class="flex flex-col gap-4 bg-dark-tiles py-3 px-4">
128+
<div class="flex flex-col gap-4 bg-dark-tiles py-3 px-4" data-pagefind-ignore>
126129
<a class="btn w-full text-white text-xl flex flex-row items-center gap-1 p-1 border border-[#e1b68c] bg-[#d18f4f] hover:bg-[#cc8540] rounded" href="{{ plugin.download_url }}">
127130
{% include "icons/download.svg" %}
128131
Download now
@@ -155,7 +158,7 @@
155158
</div>
156159
</div>
157160

158-
<div class="flex flex-col gap-3">
161+
<div class="flex flex-col gap-3" data-pagefind-ignore>
159162
<h3 class="flex flex-row items-center gap-2 bg-sidebar-header-gradient py-3 px-5 -mx-5">
160163
{% include "icons/github.svg" %}
161164
GitHub Activity

‎styles/search.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
inset: 0;
5151
text-align: center;
5252
font-size: 1.5rem /* 24px */;
53-
line-height: 26px;
53+
line-height: 21px;
5454
color: rgb(255 255 255 / 0.3);
5555
}
5656
.pagefind-ui__hidden,

0 commit comments

Comments
 (0)