wellcomecollection / alpha

Alpha version of a catalogue explorer for Wellcome Library (deprecated).
0 stars 0 forks source link

Add FB and Twitter <meta> #6

Closed george08 closed 8 years ago

george08 commented 8 years ago

This relies on a liberal robots.txt approach, so we need permission, @jennpb.

Facebook etc: http://ogp.me Twitter cards: https://dev.twitter.com/cards/overview

Thought @croberts2015 might be interested to take a stab at this one...

jennpb commented 8 years ago

Agreed. @croberts2015 I'm going to assign this to you!

croberts2015 commented 8 years ago

Yay happy to do this - but I have question(s) about how we populate the description and title type page-specific tags on each page without manually having to go in and do it. Any time to help me comprehend?

george08 commented 8 years ago

@croberts2015 If you want to start by gathering the meta tags we'll need, then we can work together on how to insert dynamic content into them...

If you look in this file -- https://github.com/wellcomelibrary/alpha/blob/master/app/views/layouts/application.html.erb -- you can see at the top there are the normal components of an HTML file... the meta stuff will need to go above the bit.

george08 commented 8 years ago

(We can also do this together if you'd like a bit more guidance - no worries at all. Just ask.)

croberts2015 commented 8 years ago

twitter cards suggestions for three template types here https://docs.google.com/document/d/11Jx4sOoomyVBX1x15umhhE0Sh4TvTqT15kNr6_RkbBI/edit?usp=sharing

sorry for the blinding.

george08 commented 8 years ago

Is this done?

george08 commented 8 years ago

@croberts2015 happy with this now?

croberts2015 commented 8 years ago

Yep tested, all awesome.