Add robots and theme color

This commit is contained in:
Eric Fennis
2026-03-26 13:46:39 +01:00
parent 8679e10aaa
commit 457a2d1766
+32 -2
View File
@@ -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',
{