update og image

This commit is contained in:
Chris W 2023-10-17 18:24:20 -06:00
parent 6181bb2711
commit 7d804003d2
3 changed files with 2 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

View File

@ -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,
};

View File

@ -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}>