You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,9 +149,9 @@ If you want to permanently display the top navigation with the algolia search ba
149
149
Note that on mobile devices the navigation will still be collapsed because otherwise, the navigation menu hides the essential parts of your site.
150
150
151
151
## 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.
153
153
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:
155
155
156
156
1. Copy the default `themes/bilberry-hugo-theme/layouts/partials/content-type/article.html` to your site's `layouts/partials/content-type/` folder.
157
157
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:
161
161
4. Create your new posts with the post type prefix: `hugo new book/a-very-cool-book.md`
162
162
5. Done.
163
163
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
+
164
168
--------------
165
169
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.
0 commit comments