Skip to content

Commit 8987636

Browse files
committed
Simplify sample post and page JSON examples
Refactor the post and single-page import JSON examples in SKILL.md: reorder and streamline spec objects by adding title/slug/template/cover, setting publish:false and visible:"PUBLIC", moving categories/tags/excerpt and setting excerpt.autoGenerate:true, removing empty snapshot/owner/releaseSnapshot/baseSnapshot/headSnapshot fields, and adding htmlMetas:[]; set publishTime to undefined for the About page. Keeps examples minimal and consistent.
1 parent 05f334b commit 8987636

1 file changed

Lines changed: 19 additions & 31 deletions

File tree

skills/halo-cli-content/SKILL.md

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -118,25 +118,20 @@ halo post import-json --file ./post.json --force
118118
"name": "56c6d867-9683-4927-ba94-388fedf87443"
119119
},
120120
"spec": {
121-
"allowComment": true,
122-
"baseSnapshot": "",
123-
"categories": ["category-xxx"],
121+
"title": "Sample Post",
122+
"slug": "sample-post",
123+
"template": "",
124+
"cover": "",
124125
"deleted": false,
125-
"excerpt": {
126-
"autoGenerate": false,
127-
"raw": ""
128-
},
129-
"headSnapshot": "",
130-
"owner": "",
126+
"publish": false,
131127
"pinned": false,
128+
"allowComment": true,
129+
"visible": "PUBLIC",
132130
"priority": 0,
133-
"publish": false,
134-
"publishTime": "",
135-
"releaseSnapshot": "",
136-
"slug": "sample-post",
131+
"excerpt": { "autoGenerate": true, "raw": "" },
132+
"categories": ["category-xxx"],
137133
"tags": ["tag-xxx"],
138-
"title": "Sample Post",
139-
"visible": "PUBLIC"
134+
"htmlMetas": []
140135
}
141136
},
142137
"content": {
@@ -254,26 +249,19 @@ halo single-page import-json --file ./about.json --force
254249
"name": "373a5f79-f44f-441a-9df1-85a4f553ece8"
255250
},
256251
"spec": {
257-
"allowComment": true,
258-
"baseSnapshot": "",
252+
"title": "About Us",
253+
"slug": "about",
254+
"template": "",
259255
"cover": "",
260256
"deleted": false,
261-
"excerpt": {
262-
"autoGenerate": false,
263-
"raw": "This is a custom page for demonstration purposes."
264-
},
265-
"headSnapshot": "",
266-
"htmlMetas": [],
267-
"owner": "",
257+
"publish": false,
258+
"publishTime": undefined,
268259
"pinned": false,
260+
"allowComment": true,
261+
"visible": "PUBLIC",
269262
"priority": 0,
270-
"publish": false,
271-
"publishTime": "",
272-
"releaseSnapshot": "",
273-
"slug": "about",
274-
"template": "",
275-
"title": "About Us",
276-
"visible": "PUBLIC"
263+
"excerpt": { "autoGenerate": true, "raw": "" },
264+
"htmlMetas": []
277265
}
278266
},
279267
"content": {

0 commit comments

Comments
 (0)