@zeropress/build-core 0.6.3 → 0.6.4
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/package.json +4 -4
- package/src/api/build-site.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeropress/build-core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Shared ZeroPress build core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@zeropress/slug-policy": "0.1.0",
|
|
37
37
|
"@zeropress/preview-data-validator": "0.6.3",
|
|
38
|
-
"@zeropress/theme-validator": "0.6.
|
|
38
|
+
"@zeropress/theme-validator": "0.6.4",
|
|
39
39
|
"highlight.js": "11.11.1",
|
|
40
|
-
"markdown-it": "
|
|
41
|
-
"markdown-it-anchor": "
|
|
40
|
+
"markdown-it": "14.2.0",
|
|
41
|
+
"markdown-it-anchor": "9.2.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/api/build-site.js
CHANGED
|
@@ -1019,8 +1019,12 @@ function attachCollectionCursors(posts, pages, collections) {
|
|
|
1019
1019
|
return;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
+
const cursor = buildCollectionCursor(collectionId, collection, items, index);
|
|
1022
1023
|
target.collection_cursors = target.collection_cursors || {};
|
|
1023
|
-
target.collection_cursors[collectionId] =
|
|
1024
|
+
target.collection_cursors[collectionId] = cursor;
|
|
1025
|
+
if (!target.collection_cursor) {
|
|
1026
|
+
target.collection_cursor = cursor;
|
|
1027
|
+
}
|
|
1024
1028
|
});
|
|
1025
1029
|
}
|
|
1026
1030
|
}
|