Meta tags

This commit is contained in:
Enrico Ros
2023-04-21 01:00:03 -07:00
parent 9f07c6200e
commit b418f1c592
2 changed files with 17 additions and 3 deletions
+10 -2
View File
@@ -4,21 +4,29 @@ import { Inter, JetBrains_Mono } from 'next/font/google';
import { extendTheme } from '@mui/joy';
// Theme & Fonts
// Identity, Branding & Meta
export const Brand = {
// Name: 'big-AGI',
// Slug: 'big-agi',
// UpperName: 'BIG-AGI',
Title: {
Common: 'big-AGI',
},
Meta: {
Description: 'big-AGI is a free, open-source project to build a general artificial intelligence (AGI) that can solve any problem.',
Keywords: 'artificial general intelligence, agi, openai, gpt-4, ai personas, code execution, pdf import, voice i/o, ai chat, artificial intelligence',
ThemeColor: '#434356',
},
URIs: {
// Slug: 'big-agi',
// Deployment: 'https://big-agi.com',
OpenRepo: 'https://github.com/enricoros/big-agi',
},
};
// Theme & Fonts
// For next April Fools' week
// export const foolsMode = new Date().getMonth() === 3 && new Date().getDate() <= 7;
+7 -1
View File
@@ -5,7 +5,7 @@ import createEmotionServer from '@emotion/server/create-instance';
import { getInitColorSchemeScript } from '@mui/joy/styles';
import { MyAppProps } from './_app';
import { bodyFontClassName, createEmotionCache } from '@/lib/theme';
import { bodyFontClassName, Brand, createEmotionCache } from '@/lib/theme';
interface MyDocumentProps extends DocumentProps {
@@ -16,6 +16,12 @@ export default function MyDocument({ emotionStyleTags }: MyDocumentProps) {
return (
<Html lang='en' className={bodyFontClassName}>
<Head>
{/* Meta (missing Title, set by the App or Page) */}
<meta name='description' content={Brand.Meta.Description} />
<meta name='keywords' content={Brand.Meta.Keywords} />
<meta name='theme-color' content={Brand.Meta.ThemeColor} />
{/* Favicons & PWA */}
<link rel='shortcut icon' href='/favicon.ico' />
<link rel='icon' type='image/png' sizes='32x32' href='/icons/favicon-32x32.png' />
<link rel='icon' type='image/png' sizes='16x16' href='/icons/favicon-16x16.png' />