@@ -3,23 +3,47 @@ import { Head } from 'nextra/components'
33import { getPageMap } from 'nextra/page-map'
44import 'nextra-theme-docs/style.css'
55
6+ const GA_ID = 'G-B76YYS1K85'
7+ const basePath = process . env . DOCS_BASE_PATH ?? '/zaileys'
8+ const logoSrc = `${ basePath } /zaileys-clean.png`
9+
610export const metadata = {
711 title : {
812 default : 'Zaileys — Simplified WhatsApp API' ,
913 template : '%s — Zaileys' ,
1014 } ,
1115 description : 'Type-safe, batteries-included WhatsApp bot framework for Node.js / TypeScript built on Baileys.' ,
16+ icons : { icon : logoSrc , apple : logoSrc } ,
17+ verification : {
18+ google : 'k0WKK9pKRwONXog26MOpUJG9e3FNniwBf0SaR9OD4pw' ,
19+ } ,
1220}
1321
1422const navbar = (
15- < Navbar logo = { < b > Zaileys</ b > } projectLink = "https://github.com/zeative/zaileys" chatLink = "https://discord.gg/KBHhTTVUc5" />
23+ < Navbar
24+ logo = {
25+ < span style = { { display : 'inline-flex' , alignItems : 'center' , gap : '0.5rem' } } >
26+ < img src = { logoSrc } alt = "Zaileys" width = { 28 } height = { 28 } style = { { borderRadius : 6 } } />
27+ < b > Zaileys</ b >
28+ </ span >
29+ }
30+ projectLink = "https://github.com/zeative/zaileys"
31+ chatLink = "https://discord.gg/KBHhTTVUc5"
32+ />
1633)
1734const footer = < Footer > MIT { new Date ( ) . getFullYear ( ) } © Zaileys.</ Footer >
1835
1936export default async function RootLayout ( { children } ) {
2037 return (
2138 < html lang = "en" dir = "ltr" suppressHydrationWarning >
22- < Head />
39+ < Head >
40+ < script async src = { `https://www.googletagmanager.com/gtag/js?id=${ GA_ID } ` } />
41+ < script
42+ dangerouslySetInnerHTML = { {
43+ __html : `window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','${ GA_ID } ');` ,
44+ } }
45+ />
46+ </ Head >
2347 < body >
2448 < Layout
2549 navbar = { navbar }
0 commit comments