How to use theme
- Estimated reading time: 2 minutesRefer to the Hugo installation and quick start guides for creating your project.
Extract the theme zip file and copy the folder named after the theme name to the themes directory of your project.
Add this line:-
theme = 'brutalist'
to the hugo.toml file in the root of your project. This is required to load the theme by its name when it is placed in the themes directory. Alternatively, you can copy all theme files across to the matching folders in the root of your project and then you should only have a single hugo.toml file. Then this step would not be required.
Instructions - Copy the pagination section from provided hugo.toml file to the hugo.toml file in the root of your project. You can set the number of posts you want to display per page in this section.
This theme supports multiple posts categories. Posts from all categories will be displayed on your home page.
If you add a new posts category, e.g. reviews, make sure you add it to your main menu by adding the following section to your hugo.toml file.
[[menus.main]]
name = 'Reviews'
pageRef = '/reviews'
weight = 25
Changing the value of weight for the menu entry will change where the link will appear in your menu.
Also, If you only have one posts/blog page, you can simply delete menu items that you do not require. The default entries are simply an example of what you can do.
All content should be entered in the content folder. The content is written in markdown. You can have a single markdown file or you can include the file in a folder (which is how this theme is setup). The folder option is preferred because you can bundle additional files for the post, e.g. images, in the same folder.
Thumbnails for posts will be detected by the theme and displayed automatically if they reside in the post folder with the name of thumbnail.jpg. The alt text for the image can be added in the content frontmatter of the relevant post:-
[params]
thumbnail = 'Alt text for thumbnail image'
You should change the baseURL, languageCode and title values in your hugo.toml file to match those of your website. The title of your website will be automatically displayed in the heading of your website when changed here.
Contact us via our website EEINN if you have any problems or want to report any bugs.