-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Facebook OG and Twitter Card Meta Tags
- Loading branch information
James Cocker
authored and
James Cocker
committed
Aug 22, 2018
1 parent
cc4b160
commit 3c006e3
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<% if $ClassName = 'PurpleSpider\BasicNews\NewsArticle' %> | ||
|
||
<meta property="og:type" content="article"> | ||
<meta property="og:url" content="$AbsoluteLink"> | ||
<meta property="og:title" content="$Title"> | ||
<meta property="og:image" content="$AttachedImage.Fill(1200,630).AbsoluteURL"> | ||
<meta property="og:description" content="$Content.LimitCharacters(200,'...')"> | ||
<meta property="og:site_name" content="$SiteConfig.Title"> | ||
<meta property="og:locale" content="$Top.ContentLocale"> | ||
<!-- Next tags are optional but recommended --> | ||
<meta property="og:image:width" content="1200"> | ||
<meta property="og:image:height" content="630"> | ||
|
||
<meta name="twitter:card" content="summary"> | ||
<%-- <meta name="twitter:site" content="@site_account"> --%> | ||
<%-- <meta name="twitter:creator" content="@individual_account"> --%> | ||
<meta name="twitter:url" content="$AbsoluteLink"> | ||
<meta name="twitter:title" content="$Title"> | ||
<meta name="twitter:description" content="$Content.LimitCharacters(200,'...')"> | ||
<% if $AttachedImage %> | ||
<meta name="twitter:image" content="$AttachedImage.Fill(1200,630).AbsoluteURL"> | ||
<% end_if %> | ||
|
||
<% end_if %> |