Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ieni <marcoieni94@gmail.com>2020-03-22 14:59:30 +0300
committerGitHub <noreply@github.com>2020-03-22 14:59:30 +0300
commit90c8351c17ff776d26671eb2c5cf7fc381443386 (patch)
tree2f3f4b95a49b0fd744a7120546d89983abbfe4cf
parentb7e068d587da374239a53d8fbb7df7990b1376db (diff)
README: explain how to always show posts in home
Solve #93
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
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