Skip to content

Commit

Permalink
Fix favicon and thumbnail paths (for real this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHauksson committed Oct 22, 2024
1 parent 0bfced1 commit 133dacf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const baseUrl = import.meta.env.BASE_URL;
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />

<link rel="icon" type="image/svg+xml" href={`${baseUrl}/${favicon}`} />
<link rel="icon" type="image/svg+xml" href={new URL(favicon, Astro.url)} />

<meta property="og:title" content={title} />
{description && <meta property="og:description" content={description} />}
<meta property="og:type" content="website" />
{
thumbnail && (
<meta property="og:image" content={`${baseUrl}/${thumbnail}`} />
<meta property="og:image" content={new URL(thumbnail, Astro.url)} />
)
}

Expand Down

0 comments on commit 133dacf

Please sign in to comment.