From: Cameron Otsuka Date: Sat, 11 Apr 2026 03:13:30 +0000 (-0700) Subject: use pagefind components X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=228046043fbd7ef65684480f79e93b6371a1c74e;p=cotsuka.github.io use pagefind components --- diff --git a/bun.lock b/bun.lock index 090929e..64a5fea 100644 --- a/bun.lock +++ b/bun.lock @@ -9,23 +9,24 @@ "@astrojs/rss": "4.0.18", "@astrojs/sitemap": "3.7.2", "@iconify-json/mdi": "^1.2.3", + "@pagefind/component-ui": "^1.5.0", "@vercel/og": "^0.8.6", "astro": "6.1.5", "astro-icon": "^1.1.5", - "pagefind": "^1.4.0", + "pagefind": "^1.5.0", }, "devDependencies": { "@astrojs/check": "0.9.8", "@eslint/js": "^9.39.4", - "@types/bun": "^1.3.10", + "@types/bun": "^1.3.12", "eslint": "^9.39.4", - "eslint-plugin-astro": "^1.6.0", + "eslint-plugin-astro": "^1.7.0", "lint-staged": "^16.4.0", - "prettier": "^3.8.1", + "prettier": "^3.8.2", "prettier-plugin-astro": "^0.14.1", "simple-git-hooks": "^2.13.1", "typescript": "^5.9.3", - "typescript-eslint": "^8.57.1", + "typescript-eslint": "^8.58.1", }, }, }, @@ -228,6 +229,8 @@ "@oslojs/encoding": ["@oslojs/encoding@1.1.0", "", {}, "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ=="], + "@pagefind/component-ui": ["@pagefind/component-ui@1.5.0", "", { "dependencies": { "adequate-little-templates": "^1.0.2", "bcp-47": "^2.1.0" } }, "sha512-lOyk1+7x5Ds0TkAXXR0o6XYITtzmx9QjtrhiPNxI7zuwmO6tr0fqaxTengz3LtvvhHoXawW/h8BEHaTaQMTegQ=="], + "@pagefind/darwin-arm64": ["@pagefind/darwin-arm64@1.5.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-OXQVlxALU9+Lz/LxkAa+RvaxY1cnRKUDCuwl9o8PY5Lg/znP573y4WIbVOOIz8Bv7uj7r00TGy7pD+NSLMJGBw=="], "@pagefind/darwin-x64": ["@pagefind/darwin-x64@1.5.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-+LK1Xq5n/B0hHc08DW61SnfIlfLKyXZ1oKcbfZ1MimE7Rn0Q6R0VI/TlC04f/JDPm+67zAOwPGizzvefOi5vqQ=="], @@ -382,6 +385,8 @@ "acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="], + "adequate-little-templates": ["adequate-little-templates@1.0.2", "", {}, "sha512-d0tFFG538l3Y4CElRKtticzrMr/OGohs32/nf3Ewn8rbTMBYwkVNe8mPdXWrDnMlz+ZVUFQjsTmsBD5zCtU4wg=="], + "ajv": ["ajv@6.14.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw=="], "ajv-draft-04": ["ajv-draft-04@1.0.0", "", { "peerDependencies": { "ajv": "^8.5.0" }, "optionalPeers": ["ajv"] }, "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw=="], @@ -424,6 +429,8 @@ "base64-js": ["base64-js@0.0.8", "", {}, "sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw=="], + "bcp-47": ["bcp-47@2.1.0", "", { "dependencies": { "is-alphabetical": "^2.0.0", "is-alphanumerical": "^2.0.0", "is-decimal": "^2.0.0" } }, "sha512-9IIS3UPrvIa1Ej+lVDdDwO7zLehjqsaByECw0bu2RRGP73jALm6FYbzI5gWbgHLvNdkvfXB5YrSbocZdOS0c0w=="], + "boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="], "brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="], diff --git a/package.json b/package.json index 0fb9264..815106e 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@astrojs/rss": "4.0.18", "@astrojs/sitemap": "3.7.2", "@iconify-json/mdi": "^1.2.3", + "@pagefind/component-ui": "^1.5.0", "@vercel/og": "^0.8.6", "astro": "6.1.5", "astro-icon": "^1.1.5", diff --git a/src/pages/articles/[date]-[id]/index.astro b/src/pages/articles/[date]-[id]/index.astro index 00c0833..ded2293 100644 --- a/src/pages/articles/[date]-[id]/index.astro +++ b/src/pages/articles/[date]-[id]/index.astro @@ -24,11 +24,7 @@ const { Content } = await render(entry); entry.data.date.toISOString()} tags={entry.data.tags} > -

+

{entry.data.title}

diff --git a/src/pages/bitcoin.astro b/src/pages/bitcoin.astro index 4f000fd..3756264 100644 --- a/src/pages/bitcoin.astro +++ b/src/pages/bitcoin.astro @@ -3,13 +3,15 @@ import Base from '@layouts/base.astro'; --- -

Bitcoin

- -

- Your browser doesn't support embedded PDFs. - Download the PDF instead. -

-
+
+

Bitcoin

+ +

+ Your browser doesn't support embedded PDFs. + Download the PDF instead. +

+
+
- + :global(.searchUi :is(*, #\#):is(*, #\#):is(*, #\#) .pf-dropdown-menu) { + min-width: 100%; + width: 100%; + max-width: 100%; + inset-inline-start: 0; + left: auto; + transform: none; + } + } + diff --git a/src/styles/style.css b/src/styles/style.css index 182f55d..f250ab0 100644 --- a/src/styles/style.css +++ b/src/styles/style.css @@ -10,6 +10,7 @@ --color-bg: light-dark(#e6e2d6, #000000); --color-text: light-dark(#000000, #e6e2d6); --color-link: light-dark(#82273d, #db7b8e); + --color-border: light-dark(#8f897d, #666666); /* Semantic colors */ --color-info: light-dark(#06458e, #5199e6);