mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Fix no show of default Twitter card
No issue - change default Twitter card from content to summary
This commit is contained in:
parent
4067bfe4c1
commit
a6a02f31ad
@ -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;
|
||||
|
@ -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' +
|
||||
|
Loading…
Reference in New Issue
Block a user