hyperctl new page command

Overview


The hyperctl new page command creates a new page index file in an existing website.

Usage


 1$ hyperctl new page -h
 2Create a new page.
 3
 4Usage:
 5        hyperctl new page [options]
 6
 7Options:
 8        -c, --config        path to the website configuration file. (required) (env: HYPER_CONFIG)
 9        -l, --layout        New page layout.
10        -s, --slug          New page slug.
11        -t, --title         New page title.
12        -d, --description   New page description.
13            --content-type  New page content type.
14            --content       New page content.
15            --draft         Create a draft page. (default: false)
16        -h, --help          Display help information.

Example


Options


-c, --config
Path to the website configuration file (site.yaml or site.json).

Defaults to the HYPER_CONFIG environment variable, if set.

To configure a default, use the export command.

1export HYPER_CONFIG="site.yaml"
-l, --layout
The new page layout.

See page.layout reference.

Example

1--layout=post.html
-s, --slug
The new page slug.

Most content-types will auto-generate a page slug (see contenttype.slug), but --slug may be used in cases where a custom slug is preferred.

Example

1--slug "hello-world"
-t, --title
The new page title.

See page.title reference.

Example

1--title "Hello, world"
-d, --description
The new page description.

See page.description reference.

Example

1--description "hyperctl new page command reference"
--content-type
Name of the content type to use for generating the new page.

Use the hyperctl content-type ls command to get a list of available content types for the configured website theme.

Example

1--content-type "Blog Post"
--content
The new page content.

See page.content reference.

Example

1--content "Lorem ipsum, hipsters get some."
--draft
Create new page as a draft.

See page.draft reference.

Edit this page on GitHub

💬 Join the community

Stay up-to-date with the lastest releases and other news from Team HyperTemplates. Ask the developers questions, get help from the community, and share your creations! 🎨