Skip to content

Commit 9aac475

Browse files
committed
Added information about the archetype.
1 parent b7555e9 commit 9aac475

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ If you want to permanently display the top navigation with the algolia search ba
149149
Note that on mobile devices the navigation will still be collapsed because otherwise, the navigation menu hides the essential parts of your site.
150150

151151
## Custom Post Types
152-
If you want to add a custom post type to change the icon in the bubble on the left column you can simply create those as you want to.
152+
If you want to add a custom post type to change the icon in the bubble on the left column you can simply create those as you wish.
153153

154-
If you want to create a `book` post type for example, you can do the following:
154+
If you want to create a `book` post type, for example, you can do the following:
155155

156156
1. Copy the default `themes/bilberry-hugo-theme/layouts/partials/content-type/article.html` to your site's `layouts/partials/content-type/` folder.
157157
2. Rename the file to your custom post type. A proper name in the _book scenario_ would be `book.html`
@@ -161,10 +161,14 @@ If you want to create a `book` post type for example, you can do the following:
161161
4. Create your new posts with the post type prefix: `hugo new book/a-very-cool-book.md`
162162
5. Done.
163163

164+
If you want to use custom Front Matter variables, create a `book.md` archetype in your `archetypes/` directory.
165+
166+
You can find further information in the official HUGO docs.
167+
164168
--------------
165169

166-
If you want to change the default post types (e.g. don't use the pencil icon on `article` or default type, but another one) copy the original file to your local `layouts/partials/content-type/` directory and edit it there. <br>
167-
Otherwise your changes would be overwritten when you update to the latest theme version.
170+
If you want to change the default post types (e.g., don't use the pencil icon on the `article` or default type, but another one) copy the original file to your local `layouts/partials/content-type/` directory and edit it there. <br>
171+
Otherwise, your changes would be overwritten when you update to the latest theme version.
168172

169173

170174
## Credits

0 commit comments

Comments
 (0)