feat: OG irudia sortzen du ekintzen datuetatik
This commit is contained in:
@@ -5,9 +5,14 @@ import "../style/vars/index.scss";
|
||||
interface Props {
|
||||
title: string;
|
||||
description?: string;
|
||||
ogImage?: string;
|
||||
}
|
||||
|
||||
const { title, description = "" } = Astro.props;
|
||||
const {
|
||||
title,
|
||||
description = "",
|
||||
ogImage = "https://laba.eus/og-image.jpg",
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@@ -31,11 +36,8 @@ const { title, description = "" } = Astro.props;
|
||||
|
||||
<meta name="fediverse:creator" content="@labasarea@mastodon.eus" />
|
||||
|
||||
<meta property="og:image" content="https://laba.eus/og-image.jpg" />
|
||||
<meta
|
||||
property="og:image:secure_url"
|
||||
content="https://laba.eus/og-image.jpg"
|
||||
/>
|
||||
<meta property="og:image" content={ogImage} />
|
||||
<meta property="og:image:secure_url" content={ogImage} />
|
||||
<meta property="og:image:type" content="image/jpeg" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
|
||||
Reference in New Issue
Block a user