Skip to content

Commit

Permalink
More SEO stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Dec 26, 2021
1 parent 235cc4d commit cc00923
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/layouts/BaseLayout.astro
Expand Up @@ -60,7 +60,12 @@ if (socialImage) {
))}

<title>{title ? `${title} - Princesseuh` : "Princesseuh"}</title>
<meta name="description" content={description ? description : "My personal website"}>
<link ref="og:title" content={title ? `${title} - Princesseuh` : "Princesseuh"} />
<meta name="description" content={description ? description : "My personal website"} />
<link ref="og:description" content={description ? description : "My personal website"} />

<meta property="og:type" content="website" />
<meta property="og:site_name" content="princesseuh.dev" />

{socialImage ? (
<meta property="og:image" content={socialImageURL.url} />
Expand All @@ -72,7 +77,8 @@ if (socialImage) {
<meta name="twitter:image" content={getBaseSiteURL() + "social-card.png"} />
)}

<link rel="canonical" href={Astro.request.canonicalURL}>
<link rel="canonical" href={Astro.request.canonicalURL} />
<link rel="og:url" href={Astro.request.canonicalURL} />

<script type="module" defer src={Astro.resolve("../assets/scripts/main.ts")}></script>
</head>
Expand Down

0 comments on commit cc00923

Please sign in to comment.