mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
feat: ✨ Add Plausible to site
This commit is contained in:
parent
8a837f0546
commit
e754c2ff6a
|
|
@ -1,6 +1,7 @@
|
||||||
import glob from "fast-glob";
|
import glob from "fast-glob";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
|
||||||
|
import PlausibleProvider from "next-plausible";
|
||||||
import { Layout } from "../components/Layout";
|
import { Layout } from "../components/Layout";
|
||||||
import type { Section } from "../components/SectionProvider";
|
import type { Section } from "../components/SectionProvider";
|
||||||
import { Providers } from "./providers";
|
import { Providers } from "./providers";
|
||||||
|
|
@ -46,6 +47,13 @@ export default async function RootLayout({
|
||||||
<html lang="en" className="h-full" suppressHydrationWarning={true}>
|
<html lang="en" className="h-full" suppressHydrationWarning={true}>
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="/favicon.png" type="image/png" />
|
<link rel="icon" href="/favicon.png" type="image/png" />
|
||||||
|
<PlausibleProvider
|
||||||
|
domain="logs.cpluspatch.com"
|
||||||
|
customDomain="https://logs.cpluspatch.com"
|
||||||
|
trackOutboundLinks={true}
|
||||||
|
trackLocalhost={false}
|
||||||
|
selfHosted={true}
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
|
<body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
|
||||||
<Providers>
|
<Providers>
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
"mdast-util-to-string": "^4.0.0",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
"mdx-annotations": "^0.1.4",
|
"mdx-annotations": "^0.1.4",
|
||||||
"next": "^14.2.13",
|
"next": "^14.2.13",
|
||||||
|
"next-plausible": "^3.12.4",
|
||||||
"next-themes": "^0.3.0",
|
"next-themes": "^0.3.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue