From 9c5b0eaacc1ae76d812d752fce7f6b1bffa3dd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Wed, 25 Oct 2017 13:43:26 +0200 Subject: [PATCH] fix(sharing): proper og:url and add og:image:alt --- views/layout.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/layout.pug b/views/layout.pug index 9ba6bde..21ca83f 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -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(property='og:title' content=helpers.formatMetaTitle(title)) 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:type' content='image/jpeg') meta(property='og:image:width' 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.') link(rel='apple-touch-icon' sizes='120x120' href='/apple-touch-icon.png') link(rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png')