feat: enhanced meta for social sharing (part 1) (#66)

This commit is contained in:
Joey Chen 2024-06-06 00:21:10 +08:00 committed by GitHub
parent 12e1b151a7
commit 3f4e7e9f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -80,6 +80,18 @@ const siteLang = siteConfig.lang.replace('_', '-')
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content={description || pageTitle}> <meta name="description" content={description || pageTitle}>
<meta name="author" content={profileConfig.name}>
<meta property="og:site_name" content={siteConfig.title}>
<meta property="og:url" content={Astro.url}>
<meta property="og:title" content={pageTitle}>
<meta property="og:description" content={description || pageTitle}>
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:url" content={Astro.url}>
<meta name="twitter:title" content={pageTitle}>
<meta name="twitter:description" content={description || pageTitle}>
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />
{favicons.map(favicon => ( {favicons.map(favicon => (