From 1a1ae944ada874c073ab1e8609960af6f0d7ab71 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 0e3d40fc..81986c02 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 683833b0..e7189503 100644 --- a/website/layouts/partials/head.html +++ b/website/layouts/partials/head.html @@ -28,6 +28,15 @@ + + + + + @@ -48,3 +57,5 @@ + +