directify-cli 1.1.0 → 1.1.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/README.md +49 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,6 +226,55 @@ directify articles delete 789
|
|
|
226
226
|
directify articles exists --slug "best-italian-restaurants"
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
+
### Custom Pages
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# List
|
|
233
|
+
directify pages list
|
|
234
|
+
directify pages ls --json
|
|
235
|
+
|
|
236
|
+
# Get
|
|
237
|
+
directify pages get 12
|
|
238
|
+
|
|
239
|
+
# Create a page in the navbar
|
|
240
|
+
directify pages create \
|
|
241
|
+
--title "About Us" \
|
|
242
|
+
--markdown "# About Us\n\nWe are a directory of the best restaurants..." \
|
|
243
|
+
--placement navbar \
|
|
244
|
+
--seo-title "About Us" \
|
|
245
|
+
--seo-description "Learn about our restaurant directory"
|
|
246
|
+
|
|
247
|
+
# Create a programmatic SEO page (unlisted by default)
|
|
248
|
+
directify pages create \
|
|
249
|
+
--title "NYC vs Chicago Pizza" \
|
|
250
|
+
--markdown "# NYC vs Chicago Pizza\n\nA detailed comparison..." \
|
|
251
|
+
--seo-title "Best Pizza: NYC vs Chicago Compared" \
|
|
252
|
+
--seo-description "Compare pizza styles between New York and Chicago"
|
|
253
|
+
|
|
254
|
+
# Create a footer link
|
|
255
|
+
directify pages create \
|
|
256
|
+
--title "Terms of Service" \
|
|
257
|
+
--markdown "# Terms of Service\n\n..." \
|
|
258
|
+
--placement footer \
|
|
259
|
+
--order 1
|
|
260
|
+
|
|
261
|
+
# Create an external link in the navbar
|
|
262
|
+
directify pages create \
|
|
263
|
+
--title "Submit a Listing" \
|
|
264
|
+
--external-url "https://forms.google.com/your-form" \
|
|
265
|
+
--placement navbar \
|
|
266
|
+
--new-tab
|
|
267
|
+
|
|
268
|
+
# Update
|
|
269
|
+
directify pages update 12 --title "Updated Title" --placement footer
|
|
270
|
+
|
|
271
|
+
# Toggle published/unpublished
|
|
272
|
+
directify pages toggle 12
|
|
273
|
+
|
|
274
|
+
# Delete
|
|
275
|
+
directify pages delete 12
|
|
276
|
+
```
|
|
277
|
+
|
|
229
278
|
## Global Options
|
|
230
279
|
|
|
231
280
|
All resource commands support these options:
|
package/package.json
CHANGED