update og image
This commit is contained in:
parent
6181bb2711
commit
7d804003d2
Binary file not shown.
Before Width: | Height: | Size: 145 KiB |
|
@ -5,7 +5,7 @@ export const SITE: Site = {
|
|||
author: "Chris Watson",
|
||||
desc: "Personal website and blog of Chris Watson",
|
||||
title: "Watzon Does Tech",
|
||||
ogImage: "astropaper-og.jpg",
|
||||
ogImage: "watzon-tech-og.png",
|
||||
lightAndDarkMode: true,
|
||||
postPerPage: 5,
|
||||
};
|
||||
|
|
|
@ -17,8 +17,7 @@ const { title, author, description, ogImage, canonicalURL, date, tags } = post.d
|
|||
|
||||
const { Content } = await post.render();
|
||||
|
||||
const ogUrl = new URL(ogImage ? ogImage : `${title}.png`, Astro.url.origin)
|
||||
.href;
|
||||
const ogUrl = ogImage ? new URL(ogImage, Astro.url.origin).href : undefined;
|
||||
---
|
||||
|
||||
<Layout title={title} author={author} description={description} ogImage={ogUrl} canonicalURL={canonicalURL}>
|
||||
|
|
Loading…
Reference in New Issue