Skip to content

Commit 08128e5

Browse files
committed
head tag fixes in theme
1 parent eb841f8 commit 08128e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/theme.config.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ const config: DocsThemeConfig = {
2525
text: 'NativeCN',
2626
},
2727
darkMode: true,
28+
head: (
29+
<>
30+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
31+
<meta property="og:title" content="NativeCN" />
32+
<meta property="og:description" content="Beautiful UI Components for React Native" />
33+
</>
34+
),
35+
useNextSeoProps() {
36+
return {
37+
titleTemplate: '%s',
38+
};
39+
},
2840
};
2941

3042
export default config;

0 commit comments

Comments
 (0)