Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/authors-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function modifyFile(fileContents, file) {
}

return `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;
}

module.exports.modifyFile = modifyFile;
2 changes: 1 addition & 1 deletion lib/automatic-new-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = class AutomaticNewTag extends BroccoliPlugin {
delete frontMatter.__content;

const fileContent = `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;

writeFileSync(join(this.outputPath,file), fileContent);
})
Expand Down
2 changes: 1 addition & 1 deletion lib/import.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable prettier/prettier */
const { existsSync, readFileSync, writeFileSync, mkdirSync } = require('fs');
const { safeDump } = require('js-yaml');
const { dump: safeDump } = require('js-yaml');

const importers = require('./importers');

Expand Down
2 changes: 1 addition & 1 deletion lib/item-include-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = class ItemIncludePosts extends BroccoliPlugin {
const newFile = join(this.outputPath, `${itemId}.md`);

const fileContent = `---
${yaml.safeDump(frontMatter)}---${content}`;
${yaml.dump(frontMatter)}---${content}`;

writeFileSync(newFile, fileContent);
});
Expand Down
8 changes: 4 additions & 4 deletions node-tests/authors-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ title: Setting up your own Ghost theme
image: /images/design.jpg
imageMeta:
attribution: face
attributionLink: 'https://www.emberjs.com/face'
attributionLink: https://www.emberjs.com/face
featured: true
date: 'Tue Jun 12 2018 17:49:21 GMT+0100 (IST)'
date: Tue Jun 12 2018 17:49:21 GMT+0100 (IST)
tags:
- getting-started
authors:
Expand All @@ -44,11 +44,11 @@ title: Setting up your own Ghost theme
image: /images/design.jpg
imageMeta:
attribution: face
attributionLink: 'https://www.emberjs.com/face'
attributionLink: https://www.emberjs.com/face
featured: true
authors:
- ghost
date: 'Tue Jun 12 2018 17:49:21 GMT+0100 (IST)'
date: Tue Jun 12 2018 17:49:21 GMT+0100 (IST)
tags:
- getting-started
---
Expand Down
6 changes: 3 additions & 3 deletions node-tests/automatic-new-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ tags:
- new
authors:
- ghost
date: 'Tue Jun 12 2018 17:50:59 GMT+0100 (IST)'
date: Tue Jun 12 2018 17:50:59 GMT+0100 (IST)
---
# Hello world`)
// oldest file does not have new tag
Expand All @@ -97,7 +97,7 @@ tags:
- a-tag-of-sorts
authors:
- ghost
date: 'Tue Jun 09 2018 17:50:59 GMT+0100 (IST)'
date: Tue Jun 09 2018 17:50:59 GMT+0100 (IST)
---
# Hello world`)

Expand All @@ -108,7 +108,7 @@ tags:
- new
authors:
- ghost
date: 'Tue Jun 13 2018 17:50:59 GMT+0100 (IST)'
date: Tue Jun 13 2018 17:50:59 GMT+0100 (IST)
---
# Hello world`)
})
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"broccoli-funnel": "^3.0.3",
"broccoli-merge-trees": "^4.2.0",
"broccoli-plugin": "^4.0.3",
"broccoli-static-site-json": "^4.2.0",
"broccoli-static-site-json": "^5.0.0",
"broccoli-static-site-json-xml": "^1.0.1",
"case": "^1.6.1",
"downsize-cjs": "^1.0.1",
Expand All @@ -53,12 +53,12 @@
"ember-meta": "^2.0.0",
"ember-scroll": "^1.0.2",
"empress-blueprint-helpers": "^1.2.1",
"js-yaml": "^3.13.1",
"js-yaml": "^4.1.0",
"lodash": "^4.17.20",
"recast": "^0.23.4",
"require-directory": "^2.1.1",
"resolve": "^1.10.1",
"walk-sync": "^3.0.0",
"walk-sync": "^4.0.1",
"xml2js": "^0.6.2",
"yaml-front-matter": "^4.0.0"
},
Expand Down
Loading
Loading