feat(index): remove twitter images
This commit is contained in:
parent
074cfc0498
commit
08b23e19f5
7 changed files with 11 additions and 39 deletions
|
@ -8,12 +8,11 @@ import { ClientRouter } from "astro:transitions";
|
|||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
image?: string;
|
||||
}
|
||||
|
||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||
|
||||
const { title, description, image = "/static/twitter-card.png" } = Astro.props;
|
||||
const { title, description } = Astro.props;
|
||||
---
|
||||
|
||||
<meta charset="utf-8" />
|
||||
|
@ -36,13 +35,11 @@ const { title, description, image = "/static/twitter-card.png" } = Astro.props;
|
|||
<meta property="og:site_name" content={SITE.TITLE} />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content={new URL(image, Astro.url)} />
|
||||
|
||||
<meta property="twitter:card" content="summary_large_image" />
|
||||
<meta property="twitter:url" content={Astro.url} />
|
||||
<meta property="twitter:title" content={title} />
|
||||
<meta property="twitter:description" content={description} />
|
||||
<meta property="twitter:image" content={new URL(image, Astro.url)} />
|
||||
|
||||
<ClientRouter />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue