opendisclosure icon indicating copy to clipboard operation
opendisclosure copied to clipboard

Add og:image and description meta tags

Open tdooner opened this issue 10 years ago • 4 comments

Otherwise, sharing on Facebook is super boring:

screen shot 2014-10-14 at 10 46 26 pm

tdooner avatar Oct 15 '14 05:10 tdooner

og:title – Campaign Finance for the 2014 Oakland Mayoral Election | Open Disclosure Oakland og:site_name – Open Disclosure Oakland | Bringing Oakland Campaign Money to Light og:url – opendisclosure.io og:description – View campaign finance data by neighborhood, corporation, union, or individual for the 2014 Oakland Mayoral Election. og:image – COMING -- og:type - website og:locale - en_US

@lla2105 -- any changes?

elinaru avatar Oct 22 '14 04:10 elinaru

poke -- @lla2105

elinaru avatar Nov 05 '14 06:11 elinaru

Can we make the title, site name, url, image, and description vary with the content of the page? So a candidate's profile passes different info than a contributor's?

evanwolf avatar Mar 22 '15 18:03 evanwolf

@evanwolf Not easily. The meta tags are rendered as part of the page by the backend, but only the JS knows about how to fetch data for the candidate you're viewing and actually change the displayed page.

Eventually I imagine we'll want to revisit how we do this, because our JS-only approach currently results in us having extremely poor SEO. But this will be a pretty massive change.

tdooner avatar Mar 22 '15 19:03 tdooner