diff --git a/README.md b/README.md index eb4cb18..46b271b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,8 @@ All commands are run from the root of the project, from a terminal: ## 🗺 Roadmap - [x] Initial project setup - [x] Basic theme implementation -- [ ] Better full-text search without `Fuse.js` +- [x] Better full-text search without `Fuse.js` +- [ ] A mode to make the site 0 javascript - [ ] Multiple authors via YAML - [ ] i18n support - [ ] Integrate with Fediverse w/ activityPub diff --git a/package.json b/package.json index bd612b6..8f7df2f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@astrojs/sitemap": "^3.3.1", "@fontsource-variable/jetbrains-mono": "^5.2.5", "astro": "^5.2.5", - "fuse.js": "^7.0.0", "sharp": "^0.34.1", "ultrahtml": "^1.6.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5741b93..ed376d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,9 +29,6 @@ importers: astro: specifier: ^5.2.5 version: 5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1) - fuse.js: - specifier: ^7.0.0 - version: 7.1.0 sharp: specifier: ^0.34.1 version: 0.34.1 @@ -1692,10 +1689,6 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - fuse.js@7.1.0: - resolution: {integrity: sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==} - engines: {node: '>=10'} - get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -4927,8 +4920,6 @@ snapshots: function-bind@1.1.2: {} - fuse.js@7.1.0: {} - get-caller-file@2.0.5: {} get-east-asian-width@1.3.0: {} diff --git a/src/components/BackToTop.astro b/src/components/BackToTop.astro index 59c0c27..3fe2679 100644 --- a/src/components/BackToTop.astro +++ b/src/components/BackToTop.astro @@ -1,7 +1,8 @@ --- - +import {siteConfig} from "../config"; +const noscript = siteConfig.noClientJavaScript --- - +{noscript ? : \ No newline at end of file +} \ No newline at end of file diff --git a/src/components/Search.astro b/src/components/Search.astro index b115350..a2c94f8 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -1,5 +1,17 @@ --- +import {siteConfig} from "../config"; +const noscript = siteConfig.noClientJavaScript --- +{noscript ? +
+ :