mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00:00
Add robots and theme color
This commit is contained in:
@@ -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',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user