fix(sharing): proper og:url and add og:image:alt

This commit is contained in:
Benedikt Rötsch
2017-10-25 13:43:26 +02:00
committed by Benedikt Rötsch
parent 490ec80f89
commit 9c5b0eaacc

View File

@@ -8,11 +8,12 @@ html
meta(name='twitter:card' value='This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') meta(name='twitter:card' value='This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.')
meta(property='og:title' content=helpers.formatMetaTitle(title)) meta(property='og:title' content=helpers.formatMetaTitle(title))
meta(property='og:type' content='article') meta(property='og:type' content='article')
meta(property='og:url' content='http://contentful-example-app.herokuapp.com/') meta(property='og:url' content=`http://contentful-example-app.herokuapp.com${currentPath}`)
meta(property='og:image' content='http://contentful-example-app.herokuapp.com/og-image.jpg') meta(property='og:image' content='http://contentful-example-app.herokuapp.com/og-image.jpg')
meta(property='og:image:type' content='image/jpeg') meta(property='og:image:type' content='image/jpeg')
meta(property='og:image:width' content='1200') meta(property='og:image:width' content='1200')
meta(property='og:image:height' content='1200') meta(property='og:image:height' content='1200')
meta(property='og:image:alt' content='This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.')
meta(property='og:description' content='This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') meta(property='og:description' content='This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.')
link(rel='apple-touch-icon' sizes='120x120' href='/apple-touch-icon.png') link(rel='apple-touch-icon' sizes='120x120' href='/apple-touch-icon.png')
link(rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png') link(rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png')