plebdevs/src/pages/_document.js

77 lines
2.8 KiB
JavaScript
Raw Normal View History

2024-03-18 19:32:43 -05:00
import Document, { Html, Head, Main, NextScript } from 'next/document';
2023-12-23 14:54:38 -06:00
2024-03-18 19:32:43 -05:00
class MyDocument extends Document {
render() {
return (
2025-03-22 14:37:47 -05:00
<Html lang="en">
2024-03-18 19:32:43 -05:00
<Head>
2025-03-22 14:37:47 -05:00
{/* Essential Meta Tags */}
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index, follow" />
2025-04-02 17:47:30 -05:00
2025-03-22 14:37:47 -05:00
{/* Default Meta Tags (can be overridden per page) */}
2025-04-02 17:47:30 -05:00
<meta
name="description"
content="PlebDevs - Developer education and content platform built on Nostr with Lightning integration"
/>
<meta
name="keywords"
content="bitcoin, lightning network, nostr, web development, programming, education, courses"
/>
2025-03-22 14:37:47 -05:00
<meta name="author" content="PlebDevs" />
{/* Open Graph / Facebook */}
<meta property="og:type" content="website" />
<meta property="og:site_name" content="PlebDevs" />
<meta property="og:locale" content="en_US" />
2025-04-02 17:47:30 -05:00
2025-03-22 14:37:47 -05:00
{/* Twitter Card */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@pleb_devs" />
<meta name="twitter:creator" content="@pleb_devs" />
{/* Schema.org structured data */}
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
2025-04-02 17:47:30 -05:00
'@context': 'https://schema.org',
'@type': 'EducationalOrganization',
name: 'PlebDevs',
description:
'Developer education and content platform built on Nostr with Lightning integration',
url: 'https://plebdevs.com',
sameAs: [
'https://x.com/pleb_devs',
'https://github.com/austinkelsay/plebdevs',
'https://www.youtube.com/@plebdevs',
],
}),
2025-03-22 14:37:47 -05:00
}}
/>
{/* Existing Font Configuration */}
<link rel="preconnect" href="https://fonts.googleapis.com" />
2025-04-02 17:47:30 -05:00
<link
href="https://fonts.googleapis.com/css2?family=Blinker:wght@100;200;300;400;600;700;800;900&family=Poppins&display=swap"
rel="stylesheet"
/>
2025-03-22 14:37:47 -05:00
{/* Existing Favicon Configuration */}
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
2024-03-18 19:32:43 -05:00
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
2023-12-23 14:54:38 -06:00
}
2024-03-18 19:32:43 -05:00
export default MyDocument;