rauchg / blog

https://rauchg.com
1.24k stars 175 forks source link

build: add microlink-cards integration #46

Closed Kikobeats closed 3 years ago

Kikobeats commented 4 years ago

Better affordable Microlink Cards integration, generating the social image when you write a new post!

Note it also generated old post images (like public/cards/pure-ui.png) although the og:image is missing in the page markup.

Probably that could be done in a more automatic way writing a specific Next.js for and injecting the HTML head tag.

Also, added the ability to read process.env.MICROLINK_API_KEY. It isn't a mandatory thing, but in case it's declared it will be used for avoiding rate limit.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click on the icon next to each commit.