Skip to content

Commit

Permalink
小修改 helmet (#266)
Browse files Browse the repository at this point in the history
* change landingPage og:image, add appid

* 沒有這張圖 use default
  • Loading branch information
wutingy authored and mark86092 committed Aug 2, 2017
1 parent 73e380a commit bb5abef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/constants/helmetData.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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: '分享你的職場資訊',
Expand Down Expand Up @@ -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') },
Expand Down

0 comments on commit bb5abef

Please sign in to comment.