sahilshahpatel / sahilshahpatel.github.io

0 stars 0 forks source link

Add open graphics to the site #7

Open sahilshahpatel opened 1 year ago

sahilshahpatel commented 1 year ago

As a first step let's just set all pages to an image of the home screen and a generic description. Later we could maybe do unique images for each page? Might be annoying though.

sahilshahpatel commented 3 months ago

There is potential to automate this with Selenium to take screenshots of the rendered page. Astro's ApiRoute structure for SSGs can help bake it into the process. Not sure how well it would go but worth a try!

If selenium is too heavy, there is another option outlined here, but it seems limited: https://www.yieldcode.blog/post/how-to-auto-generate-og-images/