Skip to content

Commit

Permalink
fix(preset-jekyll): correct property key for mp-syndicate-to
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 10, 2020
1 parent 656efa4 commit 73475d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/preset-jekyll/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
4 changes: 2 additions & 2 deletions packages/preset-jekyll/tests/fixtures/properties.jf2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/preset-jekyll/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
<p>I ate a <i>cheese</i> sandwich, which was nice.</p>
`);
Expand Down

0 comments on commit 73475d5

Please sign in to comment.