diff --git a/src/components/ReplyViaEmail.astro b/src/components/ReplyViaEmail.astro deleted file mode 100644 index 9ab399f..0000000 --- a/src/components/ReplyViaEmail.astro +++ /dev/null @@ -1,4 +0,0 @@ ---- -const { title } = Astro.props; ---- -↩ Reply via Email \ No newline at end of file diff --git a/src/components/Search.astro b/src/components/Search.astro index 8fbb5aa..a2c94f8 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -1,26 +1,13 @@ --- import {siteConfig} from "../config"; const noscript = siteConfig.noClientJavaScript -const searchEngine = siteConfig.searchEngine || 'google' -const domain = Astro.url.host --- {noscript ? -
+
- {searchEngine === "duckduckgo" && - - } - {searchEngine === "google" && - - } - {/* broken until M1cr0$0ft get support for it */} - {searchEngine === "bing" && - - } +
diff --git a/src/components/ThemeSwitcher@CSSOnly.astro b/src/components/ThemeSwitcher@CSSOnly.astro deleted file mode 100644 index 690769f..0000000 --- a/src/components/ThemeSwitcher@CSSOnly.astro +++ /dev/null @@ -1,63 +0,0 @@ ---- - ---- -
- - -
- \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index 2d6a2e3..d4b6ef0 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,10 +7,9 @@ export const siteConfig = { noClientJavaScript: false, // disable client-side javascript, this will: // 1. disable all built-in client-side javascript from rendering // 2. the full text search will be redirected to a search engine - // 3. the comments will be globally disabled + // 3. the comments will be replaced with email reply // 4. the night mode & back to top will not use Javascript to function // 5. the neko will be force-disabled - authorDefaultEmail: '', // site components navBarItems: [ // additional items in the navbar @@ -19,9 +18,6 @@ export const siteConfig = { { text: "RSS", link: "/rss.xml" }, { text: "GitHub", link: "https://github.com/GrassBlock1/mercury" }, ], - // search - // This only works when noClientJavaScript is enabled - searchEngine: 'bing', // 'google', 'duckduckgo', 'bing'(broken until M1cr0$0ft get support for it), defaults to 'google' // footer // yes you can write html safely here customFooter: 'I have no mouth, and I must SCREAM', diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 6cda7bd..6f0eb76 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -2,7 +2,6 @@ import '../styles/global.css'; import Search from '../components/Search.astro'; import ThemeSwitcher from '../components/ThemeSwitcher.astro'; -import ThemeSwitcher_CSSOnly from '../components/ThemeSwitcher@CSSOnly.astro'; import BackToTop from "../components/BackToTop.astro"; import Meta from "../components/helper/head/Meta.astro"; @@ -67,7 +66,7 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" }