Skip to content

Commit

Permalink
fix: use <Fragment> instead of <>
Browse files Browse the repository at this point in the history
This is because of a bug in Astro. See withastro/astro#800
  • Loading branch information
jonasmerlin committed Aug 29, 2021
1 parent 4e39973 commit f7fef3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SEO.astro
Expand Up @@ -67,16 +67,16 @@ if (openGraph) {
>

{ openGraph ? (
<>
<Fragment>
<meta property="og:title" content={openGraph.basic.title}>
<meta property="og:type" content={openGraph.basic.type}>
<meta property="og:image" content={openGraph.basic.image}>
<meta property="og:url" content={openGraph.basic.url}>
</>
</Fragment>
) : null }

{ openGraph?.optional ? (
<>
<Fragment>
{ openGraph.optional.audio ? (
<meta property="og:audio" content={openGraph.optional.audio}>
) : null }
Expand All @@ -98,5 +98,5 @@ if (openGraph) {
{ openGraph.optional.video ? (
<meta property="og:video" content={openGraph.optional.video }>
) : null }
</>
</Fragment>
) : null }

0 comments on commit f7fef3b

Please sign in to comment.