feat: add basic working spa mode

This commit is contained in:
草师傅 2025-07-21 22:22:37 +08:00
parent 4ab42f9543
commit 8033b18a64
Signed by: gb
GPG key ID: 43330A030E2D6478
5 changed files with 93 additions and 53 deletions

View file

@ -9,6 +9,7 @@ export const siteConfig = {
email: 'hi@mercury.info',
},
// features
spa: false, // enable single page application mode, this will enable navigation (with fade transitions) without reloading the page, and enable client-side routing
noClientJavaScript: false, // disable client-side javascript, this will:
// 1. disable most built-in client-side javascript from rendering (protected content component and umami still needs javascript to function, sorry)
// 2. the full text search will be redirected to a search engine