Merge pull request #113 from MarcoIeni/patch-2
README: explain how to always show posts in home
This commit is contained in:
commit
0bceeefdf5
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -159,6 +159,16 @@ Here is a longer summary of the project. You can write as long as you wish.
|
|||
|
||||
If you want to adjust the portfolio page to your needs, please have a look at the [main template](https://github.com/htr3n/hyde-hyde/blob/master/layouts/portfolio/list.html), that uses this [partial template](https://github.com/htr3n/hyde-hyde/blob/master/layouts/partials/portfolio/content.html) and [this SCSS style](https://github.com/htr3n/hyde-hyde/blob/master/assets/scss/hyde-hyde/_project.scss).
|
||||
|
||||
### Posts in home page
|
||||
By default hugo will show in your home page the most populated section.
|
||||
This means that if you have more projects than posts, by default your home page will list your projects instead of your posts.
|
||||
If you want to change this behaviour you can change the [mainsections](https://gohugo.io/functions/where/#mainsections).
|
||||
For example, for the [exampleSite](https://github.com/htr3n/hyde-hyde/tree/master/exampleSite) this is how you should change the `config.toml` file:
|
||||
```
|
||||
[params]
|
||||
mainSections = ["posts"]
|
||||
```
|
||||
|
||||
## Some Screenshots
|
||||
|
||||
### Main page
|
||||
|
|
Loading…
Reference in a new issue