fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
58 stars 28 forks source link

Open Graph and Twitter metadata #57

Closed chriscroome closed 4 years ago

chriscroome commented 4 years ago

I'd be interested in seeing if some additional Open Graph and Twitter metadata could be added to <head> sections of pages, see:

Is this the only template for the HTML head?

diegomanuel commented 4 years ago

Is this the only template for the HTML head?

Yes, and note that it will not change from page to page. We discussed a little bit with @pbrudnick to make that <head> dynamic because right now all the page navigation/behaviour is handled by JS (the backend returns always the same base/default html content) so pages like https://coophub.io/languages/elixir will have the same header as home.

We will probably create a new issue for that!

pbrudnick commented 4 years ago

Sorry, I think we still need to add the twitter-related metatags

chriscroome commented 4 years ago

A simple test is to put a URL into a comment, on a line on it's own, no white space at the start, on a Discourse site and if generates a onebox then the metadata is working, the same goes for a tweet, but that can be an annoying way to test things if you have any followers :wink:.