Skip to content

Commit 3a4f3d8

Browse files
committed
feat: add meta tags and favicon to documentation theme for improved SEO and branding
1 parent a8db122 commit 3a4f3d8

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

nextra-docs-en/theme.config.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ const config: DocsThemeConfig = {
6161
navbar: {
6262
extraContent: <LanguageSwitch />,
6363
},
64+
head: (
65+
<>
66+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
67+
<meta property="og:title" content="react-markdown-typer" />
68+
<meta property="og:description" content="A React component designed for modern AI applications, providing smooth real-time typing animations and full Markdown rendering capabilities" />
69+
<link rel="icon" href="/react-markdown-typer/en/favicon.ico" />
70+
</>
71+
),
6472
}
6573

6674
export default config

nextra-docs-zh/theme.config.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ const config: DocsThemeConfig = {
6161
navbar: {
6262
extraContent: <LanguageSwitch />,
6363
},
64+
head: (
65+
<>
66+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
67+
<meta property="og:title" content="react-markdown-typer" />
68+
<meta property="og:description" content="一个专为现代 AI 应用设计的 React 组件,提供流畅的实时打字动画和完整的 Markdown 渲染能力" />
69+
<link rel="icon" href="/react-markdown-typer/zh/favicon.ico" />
70+
</>
71+
),
6472
}
6573

6674
export default config

0 commit comments

Comments
 (0)