diff options
author | Marco Ieni <marcoieni94@gmail.com> | 2020-03-22 14:59:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 14:59:30 +0300 |
commit | 90c8351c17ff776d26671eb2c5cf7fc381443386 (patch) | |
tree | 2f3f4b95a49b0fd744a7120546d89983abbfe4cf | |
parent | b7e068d587da374239a53d8fbb7df7990b1376db (diff) |
README: explain how to always show posts in home
Solve #93
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |