check-face / checkface

Putting a face to a hash
https://checkface.facemorph.me
Other
25 stars 13 forks source link

Server side render website meta tags #10

Closed olivercoad closed 5 years ago

olivercoad commented 5 years ago

In order to give better social media cards when linking to particular searches from the website, the meta tags og:image and og:title need to be server side rendered based on the value query parameter.

For example, https://checkface.ml/?value=qwert should have

<meta property="og:image" content="https://api.checkface.ml/api/qwert?dim=1000" />
<meta property="og:title" content="Check Face - qwert" />

At this point it would be good to keep it simple and could be done with a template engine such as php or https://github.com/giraffe-fsharp/Giraffe.DotLiquid