diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 1d22c6b..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/jsonSchemas.xml b/.idea/jsonSchemas.xml deleted file mode 100644 index dcca7ce..0000000 --- a/.idea/jsonSchemas.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/mercury.iml b/.idea/mercury.iml index 4e641cc..39cd9a1 100644 --- a/.idea/mercury.iml +++ b/.idea/mercury.iml @@ -10,6 +10,5 @@ - \ No newline at end of file diff --git a/src/components/Search.astro b/src/components/Search.astro index 82dff35..6b0c794 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -234,9 +234,6 @@ const domain = Astro.url.host // Initialize with default config initSearch(); - - // Re-initialize when Astro's view transitions occur, this provides fix for SPA navigation - document.addEventListener('astro:page-load', initSearch); } \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index c8cd0eb..07d1f04 100644 --- a/src/config.ts +++ b/src/config.ts @@ -9,7 +9,6 @@ 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 diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e761380..055801a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -19,9 +19,6 @@ interface Props { ogImage?: string; } -import { ClientRouter } from "astro:transitions"; -const spaEnabled = siteConfig.spa - const noscript = siteConfig.noClientJavaScript const statisticsEnabled = siteConfig.siteAnalytics.enabled @@ -47,8 +44,6 @@ const { title = pageTitle, author = siteConfig.defaultAuthor.name,description = {pageTitle} - {spaEnabled && } -