From bb5abef9b82c398849584f9eec6eb5b96f7bf18b Mon Sep 17 00:00:00 2001 From: Tin Date: Wed, 2 Aug 2017 21:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9=20helmet=20(#266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change landingPage og:image, add appid * 沒有這張圖 use default --- src/constants/helmetData.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/constants/helmetData.js b/src/constants/helmetData.js index 4fb82ee9f..4329f4745 100644 --- a/src/constants/helmetData.js +++ b/src/constants/helmetData.js @@ -1,5 +1,5 @@ - +import { FACEBOOK_APP_ID } from '../config'; import { formatTitle, formatCanonicalPath } from '../utils/helmetHelper'; /* This file will organize most of CONSTANT head information. @@ -42,13 +42,16 @@ export const HELMET_DATA = { { property: 'og:description', content: '你是否曾覺得職場資訊不夠透明?分享你的職場或面試經驗,讓我們一起改變現狀、定義理想的工作!' }, { property: 'og:locale', content: 'zh_TW' }, { property: 'og:site_name', content: SITE_NAME }, + { property: 'fb:app_id', content: FACEBOOK_APP_ID }, ], link: [ { rel: 'canonical', href: formatCanonicalPath('/') }, ], }, LANDING_PAGE: { - // same as default + meta: [ + { property: 'og:image', content: `${imgHost}/www/og/index.jpg` }, + ], }, SHARE: { title: '分享你的職場資訊', @@ -166,7 +169,6 @@ export const HELMET_DATA = { { name: 'description', content: '' }, { property: 'og:title', content: formatTitle('發文留言規則', SITE_NAME) }, { property: 'og:url', content: formatCanonicalPath('/guidelines') }, - { property: 'og:image', content: `${imgHost}/www/og/guidelines.jpg` }, ], link: [ { rel: 'canonical', href: formatCanonicalPath('/guidelines') },