mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 09:59:41 +05:00
feat: add openGraph metadata
This commit is contained in:
parent
a5c19eadea
commit
8afa3ef664
12 changed files with 100 additions and 34 deletions
|
@ -3,11 +3,35 @@ import { App } from "./App";
|
|||
import { ThemeModeScript } from "flowbite-react";
|
||||
|
||||
export const metadata = {
|
||||
title: {
|
||||
template: 'AniX | %s',
|
||||
default: 'AniX',
|
||||
keywords: ["anix", "anixart", "anime", "аниксарт", "аниме"],
|
||||
formatDetection: {
|
||||
email: false,
|
||||
address: false,
|
||||
telephone: false,
|
||||
},
|
||||
title: {
|
||||
template: "AniX | %s",
|
||||
default: "AniX | Домашняя",
|
||||
},
|
||||
description: "Неофициальное приложение для anixart.tv",
|
||||
openGraph: {
|
||||
url: process.env.VERCEL_URL
|
||||
? `https://${process.env.VERCEL_URL}`
|
||||
: `http://localhost:${process.env.PORT || 3000}`,
|
||||
images: [
|
||||
{
|
||||
url: `${
|
||||
process.env.VERCEL_URL
|
||||
? "https://" + process.env.VERCEL_URL
|
||||
: "http://localhost:" + process.env.PORT || 3000
|
||||
}/opengraph.png`, // Must be an absolute URL
|
||||
width: 800,
|
||||
height: 600,
|
||||
},
|
||||
],
|
||||
locale: "ru_RU",
|
||||
type: "website",
|
||||
},
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue