diff --git a/.changeset/tender-poets-hang.md b/.changeset/tender-poets-hang.md new file mode 100644 index 000000000..1638877ef --- /dev/null +++ b/.changeset/tender-poets-hang.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Add metadata for adding site to Apple devices home diff --git a/packages/gitbook/src/components/SiteLayout/SiteLayout.tsx b/packages/gitbook/src/components/SiteLayout/SiteLayout.tsx index 83211354f..f81d1c2bd 100644 --- a/packages/gitbook/src/components/SiteLayout/SiteLayout.tsx +++ b/packages/gitbook/src/components/SiteLayout/SiteLayout.tsx @@ -141,6 +141,12 @@ export async function generateSiteLayoutMetadata(context: GitBookSiteContext): P icon: icons, apple: icons, }, + appleWebApp: { + capable: true, + title: site.title, + statusBarStyle: + customization.themes.default === CustomizationThemeMode.Dark ? 'black' : 'default', + }, robots: (await isSiteIndexable(context)) ? 'index, follow' : 'noindex, nofollow', }; }