devcows / hugo-universal-theme

Universal theme for Hugo, it stands out with its clean design and elegant typography.
https://devcows.github.io/hugo-universal-theme
MIT License
788 stars 558 forks source link

Demo menu like Blog ? #293

Open nyue opened 3 years ago

nyue commented 3 years ago

Hi,

I would like to add a blog like menu which I want to use to show information about demos I am showing.

I make a copy of the content/blog directory to content/demo and add entry to config.toml

The top menu bar show my new Demo link but when I click, it does not show the content in the directory but something like this

image

Are there additional configuration I need to make?

Thank you in advanced.

Cheers

ryanfox1985 commented 3 years ago

hello @nyue do you have the link to your repository?

ryanfox1985 commented 3 years ago

Here you can see an example:

https://github.com/Bioconductor/BioC2021

https://bioc2021.bioconductor.org/

Lokdei commented 2 years ago

Have a look at this commit: https://github.com/Lokdei/hugo-universal-theme/commit/ce625c4d60be0d4916f962782cc7a8dfbb27a052

This allows multiple sections under /content rather then only /blog