openoakland / opendisclosure

THIS PROJECT IS UNMAINTAINED - SEE: https://github.com/caciviclab/odca-jekyll AND https://github.com/caciviclab/disclosure-backend-static
http://opendisclosure.io/
49 stars 40 forks source link

Add og:image and description meta tags #335

Open tdooner opened 10 years ago

tdooner commented 10 years ago

Otherwise, sharing on Facebook is super boring:

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

elinaru commented 10 years ago

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 commented 10 years ago

poke -- @lla2105

evanwolf commented 9 years ago

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?

tdooner commented 9 years ago

@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.