diff --git a/public/default-post-thumbnail.png b/public/default-post-thumbnail.png
new file mode 100644
index 00000000..d18f7ef1
Binary files /dev/null and b/public/default-post-thumbnail.png differ
diff --git a/src/components/SEOMeta.astro b/src/components/SEOMeta.astro
index 5edbe44c..44ebc8e7 100644
--- a/src/components/SEOMeta.astro
+++ b/src/components/SEOMeta.astro
@@ -2,6 +2,7 @@
interface Props {
title: string
description?: string
+ image?: string | undefined
favicon?: string
faviconMimeType?: string
canonicalURL?: string | undefined
@@ -13,6 +14,7 @@ interface Props {
const {
title,
description,
+ image = 'default-post-thumbnail.png',
favicon,
faviconMimeType,
canonicalURL,
@@ -21,14 +23,14 @@ const {
robots,
} = Astro.props
-const _canonicalURL = canonicalURL || Astro.url.href
+const url = canonicalURL || Astro.url.href
---
-{_canonicalURL && }
+{url && }
{title}
@@ -40,3 +42,17 @@ const _canonicalURL = canonicalURL || Astro.url.href
{robots && }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/AppLayout.astro b/src/layouts/AppLayout.astro
index c4d21685..8a49c791 100644
--- a/src/layouts/AppLayout.astro
+++ b/src/layouts/AppLayout.astro
@@ -9,13 +9,14 @@ import siteConfig from '@/configs/site'
export interface Props {
title: string
description: string
+ image?: string | undefined
canonicalURL?: string | undefined
author: string
headerCssClasses?: string
keywords?: string[]
}
-const { title, description = '', canonicalURL, author, headerCssClasses = '' } = Astro.props
+const { title, description = '', image, canonicalURL, author, headerCssClasses = '' } = Astro.props
const { favicon, faviconMimeType } = siteConfig
const pageDescription =
description.length > 0 ? description : `${title} - ${siteConfig.description}`
@@ -27,6 +28,7 @@ const pageDescription =