diff --git a/packages/preset-jekyll/index.js b/packages/preset-jekyll/index.js index 39120f1e9..0dfbb0adf 100644 --- a/packages/preset-jekyll/index.js +++ b/packages/preset-jekyll/index.js @@ -143,9 +143,9 @@ export const JekyllPreset = class { ...(properties['like-of'] && {'bookmark-of': properties['like-of']}), ...(properties['repost-of'] && {'repost-of': properties['repost-of']}), ...(properties['in-reply-to'] && {'in-reply-to': properties['in-reply-to']}), - ...(properties['syndicate-to'] && {'syndicate-to': properties['syndicate-to']}), ...(properties['post-status'] === 'draft' && {draft: true}), - ...(properties.visibility && {visibility: properties.visibility}) + ...(properties.visibility && {visibility: properties.visibility}), + ...(properties['mp-syndicate-to'] && {'mp-syndicate-to': properties['mp-syndicate-to']}) }; let frontmatter = YAML.stringify(properties); frontmatter = `---\n${frontmatter}---\n`; diff --git a/packages/preset-jekyll/tests/fixtures/properties.jf2.json b/packages/preset-jekyll/tests/fixtures/properties.jf2.json index 50f4e1a0e..cc5efa1c1 100644 --- a/packages/preset-jekyll/tests/fixtures/properties.jf2.json +++ b/packages/preset-jekyll/tests/fixtures/properties.jf2.json @@ -35,7 +35,7 @@ "like-of": "http://website.example", "repost-of": "http://website.example", "in-reply-to": "http://website.example", - "syndicate-to": "http://website.example", "post-status": "draft", - "visibility": "private" + "visibility": "private", + "mp-syndicate-to": "http://website.example" } diff --git a/packages/preset-jekyll/tests/index.js b/packages/preset-jekyll/tests/index.js index 5f5430bf8..857c91df3 100644 --- a/packages/preset-jekyll/tests/index.js +++ b/packages/preset-jekyll/tests/index.js @@ -72,9 +72,9 @@ video: bookmark-of: http://website.example repost-of: http://website.example in-reply-to: http://website.example -syndicate-to: http://website.example draft: true visibility: private +mp-syndicate-to: http://website.example ---
I ate a cheese sandwich, which was nice.
`);