cheat.sh icon indicating copy to clipboard operation
cheat.sh copied to clipboard

Include content as meta data text representation

Open marcorivm opened this issue 6 years ago • 4 comments

By having a text representation inside the meta description tag on the html header we will enable clients like telegram that leverage that info to create link previews to give more info to the users at a glance.

marcorivm avatar Jul 05 '18 21:07 marcorivm

Could you please provide an example of such a description? Just to understand you better.

chubin avatar Jul 05 '18 21:07 chubin

For example if you look at this medium article https://medium.com/@Pier/vue-js-the-good-the-meh-and-the-ugly-82800bbe6684 and look at the source code you would notice several meta fields mainly the title and description meta fields

image

These are used to create the content previews when posting links to facebook and other platforms

By including this, Cheat.sh will be able to show a preview with the answer

marcorivm avatar Jul 05 '18 21:07 marcorivm

@marcorivm Ok, you mean OpenGraph. Could you please check whether wttr.in works for you? We have Opegraph data there.

https://es.wttr.in/Mexico

chubin avatar Jul 05 '18 21:07 chubin

Yeah I was initially referring to just the tag but opengraph would be nice too, opengraph would be the more modern option to just the meta description tag.

Wttr.in seems to work good but you are not including og:description tag so it won't show any more data than the title image

marcorivm avatar Jul 05 '18 23:07 marcorivm