Skip to content

Commit

Permalink
Add description meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vascYT committed Aug 15, 2023
1 parent a0451f6 commit 9b2a142
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ const { title, description } = Astro.props;
<meta property="og:title" content={title} />
<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url.href} />
{description && <meta property="og:description" content={description} />}
{
description && (
<>
<meta name="description" content={description} />
<meta property="og:description" content={description} />
</>
)
}
<meta name="theme-color" content="#FF9C17" />
<title>{title}</title>
</head>
Expand Down

0 comments on commit 9b2a142

Please sign in to comment.