diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 17:27:48 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 17:27:48 +0300 |
| commit | 0df973de7b554008383a23fd4fc2a0b8e1401b37 (patch) | |
| tree | f52b7e58b6bc80c0731d48a15016c1a7ff55c422 /src/content/post/social-image.md | |
| parent | 0b6a5881b99027be9a175e7d1f2b112daef1ab51 (diff) | |
Cleanup and firt post
Diffstat (limited to 'src/content/post/social-image.md')
| -rw-r--r-- | src/content/post/social-image.md | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/content/post/social-image.md b/src/content/post/social-image.md deleted file mode 100644 index c03faac..0000000 --- a/src/content/post/social-image.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: "Example OG Social Image" -publishDate: "27 January 2023" -description: "An example post for Astro Cactus, detailing how to add a custom social image card in the frontmatter" -tags: ["example", "blog", "image"] -ogImage: "/social-card.png" ---- - -## Adding your own social image to a post - -This post is an example of how to add a custom [open graph](https://ogp.me/) social image, also known as an OG image, to a blog post. -By adding the optional ogImage property to the frontmatter of a post, you opt out of [satori](https://github.com/vercel/satori) automatically generating an image for this page. - -If you open this markdown file `src/content/post/social-image.md` you'll see the ogImage property set to an image which lives in the public folder[^1]. - -```yaml -ogImage: "/social-card.png" -``` - -You can view the one set for this template page [here](https://astro-cactus.chriswilliams.dev/social-card.png). - -[^1]: The image itself can be located anywhere you like. |
