Add metadata for adding site to Apple devices home (#3360)

This commit is contained in:
Greg Bergé
2025-06-19 16:35:07 +02:00
committed by GitHub
parent 4f5fec7213
commit 427f748e1c
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Add metadata for adding site to Apple devices home
@@ -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',
};
}