mrmierzejewski / hugo-theme-console

A minimal, responsive and light theme for Hugo inspired by Linux console.
MIT License
393 stars 118 forks source link

Link to all posts #21

Closed jubalh closed 3 years ago

jubalh commented 3 years ago

Hi! Thanks for this awesome theme!

I added the following to my config:

[params]
     [[params.navlinks]]
     name = "posts/"
     url = "posts/"

So it looks like: showhugo

However when I click on it, I get a 404. So it seems the Pagelist is not generated? What could be the cause for this?

mrmierzejewski commented 3 years ago

Hi @jubalh, Could you please verify if it works with other themes?

jubalh commented 3 years ago

I found the problem. With my previous theme it went to http://localhost:1313/post/ not http://localhost:1313/posts. I adapted the theme to now go to post instead.

However I wonder why there is this difference. Can one configure this somehow in hugo?

jubalh commented 3 years ago

Can one configure this somehow in hugo?

mrmierzejewski commented 3 years ago

I found the following topic: https://discourse.gohugo.io/t/hugo-support-for-urls-without-a-trailing-slash/6763