ZeusWPI / zeus.ugent.be

Repository for the Zeus WPI website
https://zeus.ugent.be
MIT License
13 stars 18 forks source link

Add default og:image to blogposts #248

Open werthen opened 6 years ago

werthen commented 6 years ago

There's no image on our blogposts when posted on facebook. Adding an og:image attribute (pointing to the photo on our facebook page) would make this look way prettier.

rien commented 6 years ago

Maybe this could be combined with the option to add an image banner to a blogpost?

werthen commented 6 years ago

Yes, but the default image shouldn't be a banner. However, when a banner is supplied, we could use that image for the facebook preview

rien commented 6 years ago

Then I suggest adding a postprocessing step to find the first image tag and take that URL.

If no images are included we could just use the Zeus WPI logo.