From 457a2d17666191dc0ba7a61ab1961234c6f23368 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Thu, 26 Mar 2026 13:46:39 +0100 Subject: [PATCH] Add robots and theme color --- docs/.vitepress/getHead.ts | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/getHead.ts b/docs/.vitepress/getHead.ts index 76be7c299..263ddece0 100644 --- a/docs/.vitepress/getHead.ts +++ b/docs/.vitepress/getHead.ts @@ -6,8 +6,24 @@ interface GetHeadOptions { description: string; } +const brandColor = '#f56565' + const getHead = ({ title, socialTitle, description }: GetHeadOptions): HeadConfig[] => [ // Favicons and meta tags + [ + 'meta', + { + name: 'robots', + content: 'index,follow', + }, + ], + [ + 'meta', + { + name: 'theme-color', + content: brandColor, + }, + ], [ 'link', { @@ -20,7 +36,7 @@ const getHead = ({ title, socialTitle, description }: GetHeadOptions): HeadConfi 'link', { rel: 'icon', - href: '/favicon-dark.svg', + href: '/favicon.svg', type: 'image/svg+xml', }, ], @@ -55,7 +71,7 @@ const getHead = ({ title, socialTitle, description }: GetHeadOptions): HeadConfi { rel: 'mask-icon', href: '/safari-pinned-tab.svg', - color: '#020308', + color: brandColor, }, ], // Analytics @@ -145,6 +161,13 @@ const getHead = ({ title, socialTitle, description }: GetHeadOptions): HeadConfi content: 'image/png', }, ], + [ + 'meta', + { + property: 'og:image:alt', + content: 'Lucide icon library preview image', + }, + ], [ 'meta', { @@ -152,6 +175,13 @@ const getHead = ({ title, socialTitle, description }: GetHeadOptions): HeadConfi content: 'summary_large_image', }, ], + [ + 'meta', + { + property: 'twitter:site', + content: '@lucide_icons', + }, + ], [ 'meta', {