wasmerio / wasmer.io

The Wasmer.io website
https://wasmer.io/
21 stars 17 forks source link

Add support for custom og images #68

Open syrusakbary opened 2 years ago

syrusakbary commented 2 years ago

Articles should be able to define it's own OpenGraph images. Such as (example article: https://raw.githubusercontent.com/wasmerio/wasmer.io/master/_posts/what-makes-an-owner.md )

---
title: "What makes an owner?"
excerpt: "What makes an owner?"
date: "2022-09-12T18:00:00.000Z"
author: Teresa Lopez
ogImage: /images/blog/empowering_ownership.png
published: true
---

...

This should add the og image metadata to the html, so when posted in social media the image is properly shown (instead of a random wasmer image). Note that this field is optional, if it doesn't exist then we should not show it.