Merge pull request #4326 from lcamacho/master

Fixed default twitter card
This commit is contained in:
Jason Williams 2014-10-22 20:39:03 -05:00
commit 2c3b79186d
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ ghost_head = function (options) {
metaTitle = results[2].value(),
publishedDate, modifiedDate,
tags = tagsHelper.call(self.post, {hash: {autolink: 'false'}}).string.split(','),
card = 'content';
card = 'summary';
if (!metaDescription) {
metaDescription = excerpt.call(self.post, {hash: {words: '40'}}).string;

View File

@ -181,7 +181,7 @@ describe('{{ghost_head}} helper', function () {
' <meta property="article:tag" content="tag1" />\n' +
' <meta property="article:tag" content="tag2" />\n' +
' <meta property="article:tag" content="tag3" />\n \n' +
' <meta name="twitter:card" content="content" />\n' +
' <meta name="twitter:card" content="summary" />\n' +
' <meta name="twitter:title" content="Welcome to Ghost" />\n' +
' <meta name="twitter:description" content="blog description..." />\n' +
' <meta name="twitter:url" content="http://testurl.com/post/" />\n \n' +