🐛 Fixed X (formerly Twitter) only showing an image when sharing posts
no issue - switched `summary_large_image` for `summary` in the `twitter:card` metadata because X no longer includes a summary with the image making sharing links awkward
This commit is contained in:
parent
320eaac4c4
commit
8be5ea1462
@ -30,7 +30,7 @@
|
||||
<meta name="twitter:image" content="{{img_url @site.cover_image absolute="true"}}">
|
||||
{{/if}}
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@ghost">
|
||||
<meta property="article:publisher" content="https://www.facebook.com/ghost">
|
||||
<meta name="referrer" content="no-referrer-when-downgrade">
|
||||
|
@ -1,14 +1,7 @@
|
||||
const socialUrls = require('@tryghost/social-urls');
|
||||
|
||||
function getStructuredData(metaData) {
|
||||
let structuredData;
|
||||
let card = 'summary';
|
||||
|
||||
if (metaData.twitterImage || metaData.coverImage.url) {
|
||||
card = 'summary_large_image';
|
||||
}
|
||||
|
||||
structuredData = {
|
||||
let structuredData = {
|
||||
'og:site_name': metaData.site.title,
|
||||
'og:type': metaData.ogType,
|
||||
'og:title': metaData.ogTitle,
|
||||
@ -23,7 +16,7 @@ function getStructuredData(metaData) {
|
||||
'article:tag': metaData.keywords,
|
||||
'article:publisher': metaData.site.facebook ? socialUrls.facebook(metaData.site.facebook) : undefined,
|
||||
'article:author': metaData.authorFacebook ? socialUrls.facebook(metaData.authorFacebook) : undefined,
|
||||
'twitter:card': card,
|
||||
'twitter:card': 'summary',
|
||||
'twitter:title': metaData.twitterTitle,
|
||||
'twitter:description': metaData.twitterDescription,
|
||||
'twitter:url': metaData.canonicalUrl,
|
||||
|
@ -16,7 +16,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/post/\\">
|
||||
@ -153,7 +153,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/post/\\">
|
||||
@ -223,7 +223,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/post/\\">
|
||||
@ -308,7 +308,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/post/\\">
|
||||
@ -381,7 +381,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/post/\\">
|
||||
@ -451,7 +451,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\" />
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\" />
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\" />
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\" />
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
@ -566,7 +566,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\" />
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\" />
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\" />
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\" />
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
@ -680,7 +680,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\" />
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\" />
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\" />
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\" />
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\" />
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\" />
|
||||
@ -731,7 +731,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -845,7 +845,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -958,7 +958,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -1072,7 +1072,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -1186,7 +1186,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -1236,7 +1236,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -1350,7 +1350,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://127.0.0.1:2369/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://127.0.0.1:2369/\\">
|
||||
@ -1479,7 +1479,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -1575,7 +1575,7 @@ Object {
|
||||
<meta property=\\"og:title\\" content=\\"Ghost\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta name=\\"twitter:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
@ -1601,7 +1601,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -1687,7 +1687,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -1738,7 +1738,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -1816,7 +1816,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag2\\">
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"This is a short post\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/about/\\">
|
||||
@ -1876,7 +1876,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"facebook site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/facebook-image.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"twitter site title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"twitter site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -1992,7 +1992,7 @@ Object {
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/tag-image.png\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"tag meta title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"tag meta description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
@ -2045,7 +2045,7 @@ Object {
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/author-cover-image.png\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Author name - Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Author bio\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/author/authorname/\\">
|
||||
@ -2101,7 +2101,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost "test"\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site "test" description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2181,7 +2181,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2250,7 +2250,7 @@ Object {
|
||||
<meta property=\\"og:description\\" content=\\"site description\\">
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/site-cover.png\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/\\">
|
||||
@ -2308,7 +2308,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2389,7 +2389,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"post custom excerpt\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2465,7 +2465,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"This is a short post\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2539,7 +2539,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2607,7 +2607,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"About\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"all about our site\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/about/\\">
|
||||
@ -2680,7 +2680,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Custom Twitter title\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"Custom Twitter description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/about/\\">
|
||||
@ -2754,7 +2754,7 @@ Object {
|
||||
<meta property=\\"article:published_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta property=\\"article:author\\" content=\\"https://www.facebook.com/testuser\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"site description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2830,7 +2830,7 @@ Object {
|
||||
<meta property=\\"article:tag\\" content=\\"tag2\\">
|
||||
<meta property=\\"article:tag\\" content=\\"tag3\\">
|
||||
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"Welcome to Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"This is a short post\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/post/\\">
|
||||
@ -2889,7 +2889,7 @@ Object {
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/tag-image.png\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"tagtitle - Ghost\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
<meta name=\\"twitter:image\\" content=\\"http://localhost:65530/content/images/tag-image.png\\">
|
||||
@ -2939,7 +2939,7 @@ Object {
|
||||
<meta property=\\"og:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
<meta property=\\"og:image\\" content=\\"http://localhost:65530/content/images/tag-image.png\\">
|
||||
<meta property=\\"article:modified_time\\" content=\\"1970-01-01T00:00:00.000Z\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary_large_image\\">
|
||||
<meta name=\\"twitter:card\\" content=\\"summary\\">
|
||||
<meta name=\\"twitter:title\\" content=\\"tagtitle - Ghost\\">
|
||||
<meta name=\\"twitter:description\\" content=\\"tag description\\">
|
||||
<meta name=\\"twitter:url\\" content=\\"http://localhost:65530/tag/tagtitle/\\">
|
||||
|
@ -52,7 +52,7 @@ describe('getStructuredData', function () {
|
||||
'og:title': 'Post Title',
|
||||
'og:type': 'article',
|
||||
'og:url': 'http://mysite.com/post/my-post-slug/',
|
||||
'twitter:card': 'summary_large_image',
|
||||
'twitter:card': 'summary',
|
||||
'twitter:data1': 'Test User',
|
||||
'twitter:data2': ['one', 'two', 'tag'].join(', '),
|
||||
'twitter:description': 'Post meta description',
|
||||
@ -114,7 +114,7 @@ describe('getStructuredData', function () {
|
||||
'og:title': 'Custom Facebook title',
|
||||
'og:type': 'article',
|
||||
'og:url': 'http://mysite.com/post/my-post-slug/',
|
||||
'twitter:card': 'summary_large_image',
|
||||
'twitter:card': 'summary',
|
||||
'twitter:data1': 'Test User',
|
||||
'twitter:data2': ['one', 'two', 'tag'].join(', '),
|
||||
'twitter:description': 'Custom Twitter description',
|
||||
|
Loading…
Reference in New Issue
Block a user