Skip to content

Commit

Permalink
Update documentation on post types
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine committed Feb 19, 2022
1 parent ab5d5b6 commit b7a8c58
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,23 @@ environment-specific settings for a Hugo-based website.
## Features

### Post Types
Bilberry theme comes with a set of predefined post types, namely `article`, `audio`, `code`, `gallery`, `link`, `page`, `quote`, `status`, and `video` where the `article` type is the default.
Bilberry theme comes with a set of predefined post types, namely `article`, `audio`, `code`, `gallery`, `link`, `page`, `quote`, `status`, and `video` where the `article` type is the default one.

To create content of a specific type, use the `hugo new` command. For example:
To create a new content, use the `hugo new` command. Content can be created in two ways: a single page or a page bundle.

To create new content as a single page, you can use the following command:
```shell
hugo new <content-type>/my-single-page-content.md
```
Or, new page bundle content can be created as follows:
```shell
hugo new <content-type>/my-page-bundle-content/index.md
```
hugo new quote/edward-snowden-about-privacy.md

For example, you can create a new article as a single page and a new gallery as a page bundle using the following commands respectively:
```shell
hugo new article/my-single-page-article.md
hugo new gallery/my-page-bundle-gallery/index.md
```

The `page` post type is the only one that can be used in the top navigation bar.
Expand Down

0 comments on commit b7a8c58

Please sign in to comment.