covid19-guide / project-tracking

Project issue tracking for COVID-19 Guide
0 stars 0 forks source link

Social Share Cards #26

Open knowtheory opened 4 years ago

knowtheory commented 4 years ago

Description

We should have social share cards!

Slack Channel

covid19-guide-core

Supporting docs

Github repos!

knowtheory commented 4 years ago

I am being a little glib here because @ryanpitts & I have done most of the work already.

We forked the NYT Library repo made one customization that allows us to inject meta tags into the head (well anything really)

And then added an entry to strings.yaml in the customization repo. The entry is a javascript function that takes a title and inserts a bunch of meta tags.

knowtheory commented 4 years ago

For some reason, twitter still doesn't like our titles on the individual subject pages, which i'm quite puzzled about because both facebook and slack do the right thing.

You can see this if you take any of the guide sections (say Taking care of ourselves and drop them into the twitter card validator

If anyone has suggestions let us know!