Repository navigation
Expand file tree
/
Copy pathsearch.liquid
More file actions
45 lines (44 loc) · 1.74 KB
/
Copy pathsearch.liquid
File metadata and controls
45 lines (44 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: Search
description: Search the Billo Systems articles.
permalink: /search/
layout: blog-base.liquid
data:
nav: search
---
{% comment %}
Search page — self-hosted Pagefind UI. The /pagefind/ assets (JS, CSS, wasm,
index) are produced by the post-build `pagefind --site site` step — run by
scripts/deploy.sh (deploy) and scripts/preview.sh (local). Do NOT preview with
`cobalt serve`: it rebuilds into a temp dir and wipes site/pagefind/, so search
is dead under it. See docs/design-v2.1.0/04-search/.
{% endcomment %}
<header style="padding-block-start: var(--space-2xl);">
<p class="blog-eyebrow">Find an article</p>
<h1 class="article-title" style="max-inline-size: none; margin-block-start: var(--space-s);">Search</h1>
<p class="featured__dek">Full-text search across every article. Or browse by <a href="/tags/" style="color: var(--accent);">tag</a>.</p>
</header>
{% comment %} Pagefind UI, themed to the blog tokens via its --pagefind-ui-* vars. {% endcomment %}
<style>
#search {
--pagefind-ui-scale: 1;
--pagefind-ui-primary: var(--accent);
--pagefind-ui-text: var(--ink-primary);
--pagefind-ui-background: var(--surface-raised);
--pagefind-ui-border: var(--rule);
--pagefind-ui-tag: var(--tag-bg);
--pagefind-ui-border-width: 1px;
--pagefind-ui-border-radius: 8px;
--pagefind-ui-font: var(--font-body);
}
</style>
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
<div id="search" style="margin-block-start: var(--space-l);"></div>
<script src="/pagefind/pagefind-ui.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function () {
if (window.PagefindUI) {
new PagefindUI({ element: "#search", showSubResults: true, showImages: false });
}
});
</script>