ACalza / UofTBiohacks

UofTBiohacks CRUD app
4 stars 3 forks source link

[Frontend] meta tags for google and FB #79

Closed thejmazz closed 8 years ago

thejmazz commented 8 years ago

See here and this.

One relevant file is /static/src/components/Page.js which only works for some metas. That is,

const metas = {
    viewport: 'width=device-width, initial-scale=1',
    description: 'UofT BioHacks 2016 Website',
    author: 'iGEM Toronto'
}

will map into

<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="UofT BioHacks 2016 Website" />
<meta name="author" content="iGEM Toronto" />

Which brings us to the second file: static/src/components/Html.js. Here, you can just add in <meta>s manually. And you'll need to do this for the FB og ones.

We can test how it works on FB in our group first.

thejmazz commented 8 years ago

@SerayCicek give this a look if you have something to update how the facebook preview of the link to our site looks

thejmazz commented 8 years ago
screen shot 2016-02-04 at 1 54 00 am