@zeropress/build-core 0.1.14 → 0.1.16
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/README.md +6 -4
- package/package.json +3 -3
- package/src/api/build-site.js +360 -338
- package/src/index.d.ts +2 -18
- package/src/render/control-flow-renderer.js +221 -0
- package/src/render/partial-resolver.js +23 -0
- package/src/render/variable-resolver.js +47 -4
- package/src/render/zeropress-engine.js +30 -2
- package/src/theme/load-theme-dir.js +5 -10
package/README.md
CHANGED
|
@@ -186,9 +186,13 @@ Build-core now derives:
|
|
|
186
186
|
- taxonomy link HTML
|
|
187
187
|
- formatted `published_at` / `updated_at`
|
|
188
188
|
- `reading_time`
|
|
189
|
-
- `
|
|
189
|
+
- `comments_enabled`
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
It also emits a comments allowlist artifact:
|
|
192
|
+
|
|
193
|
+
- `/_zeropress/comment-policy.json`
|
|
194
|
+
|
|
195
|
+
Comment availability is derived from preview-data policy:
|
|
192
196
|
|
|
193
197
|
- `site.disallowComments`
|
|
194
198
|
- `content.posts[].allow_comments`
|
|
@@ -216,7 +220,6 @@ Supported options:
|
|
|
216
220
|
|
|
217
221
|
- `assetHashing`
|
|
218
222
|
- `generateSpecialFiles`
|
|
219
|
-
- `injectHtmx`
|
|
220
223
|
- `writeManifest`
|
|
221
224
|
|
|
222
225
|
These options apply to both full builds and partial renders where relevant.
|
|
@@ -225,7 +228,6 @@ Defaults:
|
|
|
225
228
|
|
|
226
229
|
- `assetHashing: true`
|
|
227
230
|
- `generateSpecialFiles: true`
|
|
228
|
-
- `injectHtmx: true`
|
|
229
231
|
- `writeManifest: false`
|
|
230
232
|
|
|
231
233
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeropress/build-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Shared ZeroPress build core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@zeropress/slug-policy": "^0.1.0",
|
|
37
|
-
"@zeropress/preview-data-validator": "^0.4.
|
|
38
|
-
"@zeropress/theme-validator": "^0.
|
|
37
|
+
"@zeropress/preview-data-validator": "^0.4.4",
|
|
38
|
+
"@zeropress/theme-validator": "^0.4.0",
|
|
39
39
|
"highlight.js": "^11.11.1",
|
|
40
40
|
"markdown-it": "^14.1.0",
|
|
41
41
|
"markdown-it-anchor": "^9.2.0"
|