diff --git a/public/ogImage.png b/public/ogImage.png
index f9e9dea..ea7c09e 100644
Binary files a/public/ogImage.png and b/public/ogImage.png differ
diff --git a/src/components/PostHead.astro b/src/components/PostHead.astro
index a012388..02cf200 100644
--- a/src/components/PostHead.astro
+++ b/src/components/PostHead.astro
@@ -10,38 +10,55 @@ const { post } = Astro.props
const title = post.data.title || SITE.title
const description = post.data.description || SITE.description
-const image = new URL('/image/' + post.id + '.png', Astro.site).toString()
+const postUrl = new URL(post.id, SITE.href).toString()
+const image = SITE.href + '/image/' + post.id + '.png';
const author = post.data.authors ? post.data.authors.join(', ') : SITE.author
+
+const wordsPerMinute = 200;
+const wordCount = post.body ? post.body.split(/\s+/).length : 0;
+const readTime = Math.max(1, Math.round(wordCount / wordsPerMinute));
---
+
{`${title} - ${SITE.title}`}
-
+
+
+
+
+{post?.data.tags && }
+
+
+
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
-
+
+
{
post?.data.tags &&
post.data.tags.map((tag: string) => {
@@ -49,11 +66,32 @@ const author = post.data.authors ? post.data.authors.join(', ') : SITE.author
})
}
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/src/components/Posthog.astro b/src/components/Posthog.astro
new file mode 100644
index 0000000..4498abd
--- /dev/null
+++ b/src/components/Posthog.astro
@@ -0,0 +1,59 @@
+---
+
+---
+
+
\ No newline at end of file
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 10e0472..37db2eb 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -7,6 +7,7 @@ import Head from '@/components/Head.astro'
import Navbar from '@/components/react/navbar'
import { SITE } from '@/consts'
import { cn } from '@/lib/utils'
+import Posthog from '@/components/Posthog.astro'
const { isWide = false } = Astro.props
---
@@ -23,6 +24,7 @@ const { isWide = false } = Astro.props
+
+
@@ -61,5 +64,15 @@ const { isWide = false } = Astro.props
+
+