mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
chore(website): fix metadata
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
import type { Metadata } from 'next/types';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
import { Providers } from './providers';
|
import { Providers } from './providers';
|
||||||
|
import { DESCRIPTION } from '~/util/constants';
|
||||||
import { inter } from '~/util/fonts';
|
import { inter } from '~/util/fonts';
|
||||||
|
|
||||||
import '@unocss/reset/tailwind-compat.css';
|
import '@unocss/reset/tailwind-compat.css';
|
||||||
@@ -7,6 +9,65 @@ import '../styles/unocss.css';
|
|||||||
import '../styles/cmdk.css';
|
import '../styles/cmdk.css';
|
||||||
import '../styles/main.css';
|
import '../styles/main.css';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'discord.js',
|
||||||
|
description: DESCRIPTION,
|
||||||
|
viewport: {
|
||||||
|
minimumScale: 1,
|
||||||
|
initialScale: 1,
|
||||||
|
width: 'device-width',
|
||||||
|
},
|
||||||
|
icons: {
|
||||||
|
other: [
|
||||||
|
{
|
||||||
|
url: '/favicon-32x32.png',
|
||||||
|
sizes: '32x32',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/favicon-16x16.png',
|
||||||
|
sizes: '16x16',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
apple: [
|
||||||
|
'/apple-touch-icon.png',
|
||||||
|
{
|
||||||
|
url: '/safari-pinned-tab.svg',
|
||||||
|
rel: 'mask-icon',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
manifest: '/site.webmanifest',
|
||||||
|
|
||||||
|
themeColor: '#5865f2',
|
||||||
|
colorScheme: 'light dark',
|
||||||
|
|
||||||
|
appleWebApp: {
|
||||||
|
title: 'discord.js',
|
||||||
|
},
|
||||||
|
|
||||||
|
applicationName: 'discord.js',
|
||||||
|
|
||||||
|
openGraph: {
|
||||||
|
siteName: 'discord.js',
|
||||||
|
type: 'website',
|
||||||
|
title: 'discord.js',
|
||||||
|
description: DESCRIPTION,
|
||||||
|
images: 'https://discordjs.dev/api/open-graph.png',
|
||||||
|
},
|
||||||
|
|
||||||
|
twitter: {
|
||||||
|
card: 'summary_large_image',
|
||||||
|
creator: '@iCrawlToGo',
|
||||||
|
},
|
||||||
|
|
||||||
|
other: {
|
||||||
|
'msapplication-TileColor': '#090a16',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
export default function RootLayout({ children }: PropsWithChildren) {
|
export default function RootLayout({ children }: PropsWithChildren) {
|
||||||
return (
|
return (
|
||||||
<html className={inter.variable} lang="en" suppressHydrationWarning>
|
<html className={inter.variable} lang="en" suppressHydrationWarning>
|
||||||
|
|||||||
@@ -1,69 +1,9 @@
|
|||||||
import { FiExternalLink } from '@react-icons/all-files/fi/FiExternalLink';
|
import { FiExternalLink } from '@react-icons/all-files/fi/FiExternalLink';
|
||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import type { Metadata } from 'next/types';
|
|
||||||
import vercelLogo from '../assets/powered-by-vercel.svg';
|
import vercelLogo from '../assets/powered-by-vercel.svg';
|
||||||
import { SyntaxHighlighter } from '~/components/SyntaxHighlighter';
|
import { SyntaxHighlighter } from '~/components/SyntaxHighlighter';
|
||||||
import { CODE_EXAMPLE, DESCRIPTION } from '~/util/constants';
|
import { CODE_EXAMPLE } from '~/util/constants';
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'discord.js',
|
|
||||||
description: DESCRIPTION,
|
|
||||||
viewport: {
|
|
||||||
minimumScale: 1,
|
|
||||||
initialScale: 1,
|
|
||||||
width: 'device-width',
|
|
||||||
},
|
|
||||||
icons: {
|
|
||||||
other: [
|
|
||||||
{
|
|
||||||
url: '/favicon-32x32.png',
|
|
||||||
sizes: '32x32',
|
|
||||||
type: 'image/png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
url: '/favicon-16x16.png',
|
|
||||||
sizes: '16x16',
|
|
||||||
type: 'image/png',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
apple: [
|
|
||||||
'/apple-touch-icon.png',
|
|
||||||
{
|
|
||||||
url: '/safari-pinned-tab.svg',
|
|
||||||
rel: 'mask-icon',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
manifest: '/site.webmanifest',
|
|
||||||
|
|
||||||
themeColor: '#5865f2',
|
|
||||||
colorScheme: 'light dark',
|
|
||||||
|
|
||||||
appleWebApp: {
|
|
||||||
title: 'discord.js',
|
|
||||||
},
|
|
||||||
|
|
||||||
applicationName: 'discord.js',
|
|
||||||
|
|
||||||
openGraph: {
|
|
||||||
siteName: 'discord.js',
|
|
||||||
type: 'website',
|
|
||||||
title: 'discord.js',
|
|
||||||
description: DESCRIPTION,
|
|
||||||
images: 'https://discordjs.dev/api/open-graph.png',
|
|
||||||
},
|
|
||||||
|
|
||||||
twitter: {
|
|
||||||
card: 'summary_large_image',
|
|
||||||
creator: '@iCrawlToGo',
|
|
||||||
},
|
|
||||||
|
|
||||||
other: {
|
|
||||||
'msapplication-TileColor': '#090a16',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user