diff --git a/public/images/favicon/dark/android-chrome-192x192.png b/public/images/favicon-dark/android-chrome-192x192.png similarity index 100% rename from public/images/favicon/dark/android-chrome-192x192.png rename to public/images/favicon-dark/android-chrome-192x192.png diff --git a/public/images/favicon/dark/android-chrome-512x512.png b/public/images/favicon-dark/android-chrome-512x512.png similarity index 100% rename from public/images/favicon/dark/android-chrome-512x512.png rename to public/images/favicon-dark/android-chrome-512x512.png diff --git a/public/images/favicon/dark/apple-touch-icon.png b/public/images/favicon-dark/apple-touch-icon.png similarity index 100% rename from public/images/favicon/dark/apple-touch-icon.png rename to public/images/favicon-dark/apple-touch-icon.png diff --git a/public/images/favicon/dark/favicon-16x16.png b/public/images/favicon-dark/favicon-16x16.png similarity index 100% rename from public/images/favicon/dark/favicon-16x16.png rename to public/images/favicon-dark/favicon-16x16.png diff --git a/public/images/favicon/dark/favicon-32x32.png b/public/images/favicon-dark/favicon-32x32.png similarity index 100% rename from public/images/favicon/dark/favicon-32x32.png rename to public/images/favicon-dark/favicon-32x32.png diff --git a/public/images/favicon/dark/favicon.ico b/public/images/favicon-dark/favicon.ico similarity index 100% rename from public/images/favicon/dark/favicon.ico rename to public/images/favicon-dark/favicon.ico diff --git a/public/images/favicon/dark/site.webmanifest b/public/images/favicon-dark/site.webmanifest similarity index 100% rename from public/images/favicon/dark/site.webmanifest rename to public/images/favicon-dark/site.webmanifest diff --git a/public/images/favicon/light/android-chrome-192x192.png b/public/images/favicon-light/android-chrome-192x192.png similarity index 100% rename from public/images/favicon/light/android-chrome-192x192.png rename to public/images/favicon-light/android-chrome-192x192.png diff --git a/public/images/favicon/light/android-chrome-512x512.png b/public/images/favicon-light/android-chrome-512x512.png similarity index 100% rename from public/images/favicon/light/android-chrome-512x512.png rename to public/images/favicon-light/android-chrome-512x512.png diff --git a/public/images/favicon/light/apple-touch-icon.png b/public/images/favicon-light/apple-touch-icon.png similarity index 100% rename from public/images/favicon/light/apple-touch-icon.png rename to public/images/favicon-light/apple-touch-icon.png diff --git a/public/images/favicon/light/favicon-16x16.png b/public/images/favicon-light/favicon-16x16.png similarity index 100% rename from public/images/favicon/light/favicon-16x16.png rename to public/images/favicon-light/favicon-16x16.png diff --git a/public/images/favicon/light/favicon-32x32.png b/public/images/favicon-light/favicon-32x32.png similarity index 100% rename from public/images/favicon/light/favicon-32x32.png rename to public/images/favicon-light/favicon-32x32.png diff --git a/public/images/favicon/light/favicon.ico b/public/images/favicon-light/favicon.ico similarity index 100% rename from public/images/favicon/light/favicon.ico rename to public/images/favicon-light/favicon.ico diff --git a/public/og-image.png b/public/og-image.png new file mode 100644 index 00000000..b8651e5e Binary files /dev/null and b/public/og-image.png differ diff --git a/src/pages/hegel/index.mdx b/src/pages/hegel/index.mdx index 03d71203..7ba3baed 100644 --- a/src/pages/hegel/index.mdx +++ b/src/pages/hegel/index.mdx @@ -1,5 +1,5 @@ --- -description: Hegel index description +searchable: false --- Index landing page for Hegel diff --git a/src/pages/index.mdx b/src/pages/index.mdx index 6efc4bc0..e70d5c63 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -1,7 +1,3 @@ ---- -description: "sPhil is open-source philosophy." ---- - import LandingPage from "../components/pages/landing"; \ No newline at end of file diff --git a/src/pages/kant/index.mdx b/src/pages/kant/index.mdx index 95b9013a..856b9cd0 100644 --- a/src/pages/kant/index.mdx +++ b/src/pages/kant/index.mdx @@ -1,5 +1,5 @@ --- -description: Kant index description +searchable: false --- Index landing page for **Kant** diff --git a/src/pages/privacy.mdx b/src/pages/privacy.mdx index 18f8afb5..d16108c2 100644 --- a/src/pages/privacy.mdx +++ b/src/pages/privacy.mdx @@ -1,5 +1,4 @@ --- -description: See our privacy policy and how it relates to you. hidden: true headeronly: true container: true diff --git a/src/pages/spinoza/index.mdx b/src/pages/spinoza/index.mdx index 8eae9377..5e888250 100644 --- a/src/pages/spinoza/index.mdx +++ b/src/pages/spinoza/index.mdx @@ -1,5 +1,5 @@ --- -description: Spinoza index description +searchable: false --- Index landing page for **SPINOZA** diff --git a/src/pages/terms.mdx b/src/pages/terms.mdx index ae6d3662..dc79f5d6 100644 --- a/src/pages/terms.mdx +++ b/src/pages/terms.mdx @@ -1,5 +1,4 @@ --- -description: See our terms of our service and how they relate to you. hidden: true headeronly: true container: true diff --git a/theme.config.tsx b/theme.config.tsx index 54f102bc..c4e75194 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -4,6 +4,8 @@ import Footer from "@/components/Footer"; import { useRouter } from "next/router"; import { type DocsThemeConfig, useConfig } from "nextra-theme-docs"; +const SITE_ROOT = "https://sphil-test.ey.r.appspot.com/"; + const config: DocsThemeConfig = { docsRepositoryBase: "https://github.com/Firgrep/sphil/tree/main", // root for every edit link editLink: { @@ -12,6 +14,63 @@ const config: DocsThemeConfig = { footer: { component: Footer, }, + head: function Head() { + const router = useRouter(); + const { frontMatter } = useConfig(); + const systemTheme = "light"; + const fullUrl = + router.asPath === "/" ? SITE_ROOT : `${SITE_ROOT}${router.asPath}`; + + return ( + <> + + + + + + + + + + + + + + + + + + ); + }, logo: NavbarHeader, logoLink: false, navbar: {