From b2579415a42d44bf277c0864bed2289261550e15 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Mon, 30 Sep 2024 16:23:35 -0700 Subject: [PATCH] Add initial search functionality to website - Uses Pagefind: https://pagefind.app/docs/ --- .github/workflows/hugo.yml | 5 +++++ website/layouts/partials/head.html | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 0e3d40fc5..81986c025 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -59,6 +59,11 @@ jobs: --baseURL "${{ steps.pages.outputs.base_url }}/" \ --source website \ --destination public + + # Run pagefind to add search functionality + # Reference: https://pagefind.app/docs/ + npx -y pagefind --site public + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/website/layouts/partials/head.html b/website/layouts/partials/head.html index 683833b07..e7189503b 100644 --- a/website/layouts/partials/head.html +++ b/website/layouts/partials/head.html @@ -28,6 +28,15 @@ + + + + + @@ -48,3 +57,5 @@ + +