Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Allow different Open Graph namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hurley committed Jun 8, 2017
1 parent 3409215 commit ea01d59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser/layout/partials/html-tag.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<html lang="en-GB" prefix="og: http://ogp.me/ns#" data-ab-state="{{__abState}}" class="no-js core o-hoverable-on" data-next-app="{{__name}}" {{#if __edition}} data-next-edition="{{__edition}}"{{/if}}{{#if __isProduction}} data-next-is-production{{/if}}{{#if __version}} data-next-version="{{__version}}"{{/if}}{{#if adsLayout}} data-ads-layout="{{adsLayout}}"{{/if}}{{#if barrierType}} data-barrier-type="{{barrierType}}"{{/if}}{{#if corporateId}} data-corporate-id="{{corporateId}}"{{/if}} {{#outputBlock 'globalDataAttributes'}}{{/outputBlock}}>
<html lang="en-GB" prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# video: http://ogp.me/ns/video#" data-ab-state="{{__abState}}" class="no-js core o-hoverable-on" data-next-app="{{__name}}" {{#if __edition}} data-next-edition="{{__edition}}"{{/if}}{{#if __isProduction}} data-next-is-production{{/if}}{{#if __version}} data-next-version="{{__version}}"{{/if}}{{#if adsLayout}} data-ads-layout="{{adsLayout}}"{{/if}}{{#if barrierType}} data-barrier-type="{{barrierType}}"{{/if}}{{#if corporateId}} data-corporate-id="{{corporateId}}"{{/if}} {{#outputBlock 'globalDataAttributes'}}{{/outputBlock}}>
8 changes: 5 additions & 3 deletions browser/layout/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@
<meta name="msapplication-TileColor" content="#fff1e0">
<meta name="msapplication-TileImage" content="https://www.ft.com/__assets/creatives/brand-ft/icons/v2/mstile-144x144.png">

{{#each og}}
{{#each openGraph}}
{{#each this}}
{{#if this}}
<meta property="og:{{@key}}" content="{{this}}">
<meta property="{{@../key}}:{{@key}}" content="{{this}}">
{{/if}}
{{/each}}
{{/each}}
<meta property="og:locale" content="en_GB">
<meta property="og:site_name" content="Financial Times">

Expand All @@ -51,7 +53,7 @@
{{/if}}
{{/each}}
<meta name="twitter:site" content="@FinancialTimes">
{{#unless og.image}}
{{#unless openGraph.og.image}}
<meta name="twitter:image" content="https://www.ft.com/__assets/creatives/brand-ft/icons/v2/favicon-194x194.png">
{{/unless}}

Expand Down

0 comments on commit ea01d59

Please sign in to comment.