Hello,
I use hugo for very, very small site and I would like to have just content/_index.md
and couple of pages without actually creating any subdirectories. Is this possible? I understand from the documentation there are some rules for the directory structure, however I really don’t want to create subdirectories.
Thanks
Lukas_Zapletal:
Is this possible?
Yes.
hugo new _index.md
hugo new about.md
hugo new contact.md
Resulting structure:
content
├── about.md
├── contact.md
└── _index.md
Well I tried that, it does not generate anything for me.
$ ls public/
CNAME favicon.ico index_assets js version-2.3
css fonts index.html versions 404.html
Please share your repository so we can look at your templates, configuration, etc.
Sure, thank you. The code is here:
The site is here:
https://docs.theforeman.org/
My goal is to create:
https://docs.theforeman.org/2.3.html
When I create the md files, nothing is actually rendered.
This is my very first hugo site, so there is probably lot of problems, feel free to point out on those because I am struggling really hard with this
If you want URLs like
https://docs.theforeman.org/2.3.html
instead of
https://docs.theforeman.org/2.3/
you will need to add this to config.toml:
uglyurls = true
See https://gohugo.io/content-management/urls/#ugly-urls .
1 Like
Which files are not rendered?
system
Closed
March 7, 2021, 4:23pm
10
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.