diff --git a/src/layouts/Blog.astro b/src/layouts/Blog.astro index 82a6d44..a204546 100644 --- a/src/layouts/Blog.astro +++ b/src/layouts/Blog.astro @@ -2,7 +2,7 @@ import BaseLayout from "./BaseLayout.astro"; const { frontmatter } = Astro.props; const hasTags = frontmatter.tags && frontmatter.tags.length > 0; -const imgLink = `${Astro.site.origin}/og/${Astro.props.post.slug}.png`; +const imgLink = `${Astro.site.origin}/og/${frontmatter.slug}.png`; --- diff --git a/src/pages/about.md b/src/pages/about.md index d1ce1e7..89c22bb 100644 --- a/src/pages/about.md +++ b/src/pages/about.md @@ -4,6 +4,7 @@ title: "Hello World" subtitle: "Things I've learned from saying Hello to the world" author: Andrew tags: ["one", "two", "three"] +slug: "hello-world" --- ![Example image](/og/index.png)