From b418f1c592945347ea1bde239cbe329374f1df09 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Fri, 21 Apr 2023 01:00:03 -0700 Subject: [PATCH] Meta tags --- lib/theme.ts | 12 ++++++++++-- pages/_document.tsx | 8 +++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/theme.ts b/lib/theme.ts index ab336a82f..b39e3b5a5 100644 --- a/lib/theme.ts +++ b/lib/theme.ts @@ -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; diff --git a/pages/_document.tsx b/pages/_document.tsx index 476e20432..c6abf851d 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -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 ( + {/* Meta (missing Title, set by the App or Page) */} + + + + + {/* Favicons & PWA */}