Skip to content

Commit

Permalink
feat: enhanced meta for social sharing (part 1) (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyC-Dev authored Jun 5, 2024
1 parent 12e1b15 commit 3f4e7e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ const siteLang = siteConfig.lang.replace('_', '-')

<meta charset="UTF-8" />
<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="generator" content={Astro.generator} />
{favicons.map(favicon => (
Expand Down

0 comments on commit 3f4e7e9

Please sign in to comment.