Skip to content

Commit

Permalink
social iamge
Browse files Browse the repository at this point in the history
  • Loading branch information
cssho committed Mar 18, 2024
1 parent 36520ea commit 45bff3b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ const { generator, site } = Astro;
const description = "VS Code Conference Japan 2024 - 2024/04/20 Sat.";
const title = "VS Code Conference Japan 2024";
const socialImageUrl = new URL(
path.join(
import.meta.env.BASE_URL,
"social.png",
site?.toString() ?? "localhost:4321",
),
path.join(import.meta.env.BASE_URL, "social.png"),
site?.toString() ?? "localhost:4321",
);
---

Expand All @@ -43,7 +40,7 @@ const socialImageUrl = new URL(
<meta property="og:title" content={title} />
<meta property="og:type" content="website" />
<meta property="og:description" content={description} />
<meta property="og:image" content="socialImageUrl" />
<meta property="og:image" content={socialImageUrl} />
<meta property="og:url" content={site} />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@vscodejp" />
Expand Down

0 comments on commit 45bff3b

Please sign in to comment.