eleventy-blog 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/commands/eject.js
CHANGED
|
@@ -50,7 +50,7 @@ module.exports = async function eject(args) {
|
|
|
50
50
|
["Page", "Status", "File"],
|
|
51
51
|
...list.map((item) => [
|
|
52
52
|
item.name,
|
|
53
|
-
fs.existsSync(item.file) ? "yours" : item.text ? "built in" : "
|
|
53
|
+
fs.existsSync(item.file) ? "yours" : item.text ? "built in" : item.name === "layout" ? "uses your layout" : "needs feed.url",
|
|
54
54
|
path.relative(args.cwd, item.file),
|
|
55
55
|
]),
|
|
56
56
|
]);
|
package/lib/commands/studio.js
CHANGED
|
@@ -25,8 +25,10 @@ async function buildUrlMap(site) {
|
|
|
25
25
|
const previous = process.cwd();
|
|
26
26
|
process.chdir(site.cwd);
|
|
27
27
|
try {
|
|
28
|
+
// Serve mode, as for the preview, so drafts get their addresses too.
|
|
28
29
|
const elev = new site.Eleventy(undefined, undefined, {
|
|
29
30
|
quietMode: true,
|
|
31
|
+
runMode: "serve",
|
|
30
32
|
...(site.configPath ? { configPath: site.configPath } : {}),
|
|
31
33
|
});
|
|
32
34
|
const results = await elev.toJSON();
|
package/lib/commands/update.js
CHANGED
|
@@ -38,7 +38,7 @@ function changelogBetween(changelog, from, to) {
|
|
|
38
38
|
const version = part.split("\n")[0].trim().split(/\s/)[0];
|
|
39
39
|
if (!/^\d+\.\d+\.\d+/.test(version)) continue;
|
|
40
40
|
if (compareVersions(version, from) > 0 && compareVersions(version, to) <= 0) {
|
|
41
|
-
sections.push({ version, text: part.slice(part.indexOf("\n") + 1).
|
|
41
|
+
sections.push({ version, text: part.slice(part.indexOf("\n") + 1).replace(/^\s*\n/, "").trimEnd() });
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return sections;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eleventy-blog",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Command-line tool and local editor for eleventy-plugin-blog: add the blog to a site, write and publish posts, tidy tags, check before you deploy, and edit in a browser",
|
|
5
5
|
"bin": {
|
|
6
6
|
"eleventy-blog": "bin/eleventy-blog.js"
|