From 90c8351c17ff776d26671eb2c5cf7fc381443386 Mon Sep 17 00:00:00 2001 From: Marco Ieni Date: Sun, 22 Mar 2020 12:59:30 +0100 Subject: [PATCH] README: explain how to always show posts in home Solve #93 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4bc27f6..5cc8091 100644 --- a/README.md +++ b/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