VulnerabilityHistoryProject / vulnerability-history

vulnerabilityhistory.org
MIT License
32 stars 5 forks source link

Add OG Meta Tags to Site Links #790

Closed theshmurph closed 4 years ago

theshmurph commented 4 years ago

It would be great if our links would be more than just hyperlinked text. Most sites already have OpenGraph tags to their links to make them pop as such:

image

Adding this would be one of those things I think would make the site much better with a small tweak.

andymeneely commented 4 years ago

Some example meta tags for Rails Guides:

image

Looks like they've got OpenGraph, see https://ogp.me/

And then a description: here's a blog entry about it. https://moz.com/learn/seo/meta-description

FYI the <meta> tags sit in the <head>, which is defined in application.html.erb. But each page will have slightly different meta tags, so in an individual page we can use the content_for method (described here).

Now as nice as it would be, we don't have any server-side rendering of our timelines that could be loaded here. So for preview images we'll have to do something static for now. Potentially in the future we can come up with a server-side thumbnail visualization.