Open shinguz opened 2 months ago
My biggest pain was, that hugo server did NOT show any error. Hugo did just not render the public files. I spent hours and was asking 2 hugo cracks and nobody could help me. So it would be good if hugo / hugo server would throw the error as well. I do not know if this is the same error or if this is a second error...
Just a note: this is IMHO a blocking issue (at least for us). Just in case you have such states for issues.
And I am more than happy and willing to test fixes... :-)
Seems to be a workaround for all others that suffer... hugo --printUnusedTemplates --printPathWarnings
Hi there,
try to create the base structure like this:
hugo new site bugreport
cd bugreport/
hugo new theme bugreport
echo "theme = 'bugreport'" >>hugo.toml
hugo new content wiki/_index.md
hugo new content wiki/marketing/_index.md
hugo new content wiki/marketing/applying-for-official-public-mandates.md
hugo new content wiki/marketing/conferences.md
hugo new content wiki/marketing/fromdual-partner.md
hugo new content wiki/marketing/spam.md
hugo new content wiki/marketing/who-is-who.md
This should result in this content
directory:
$ tree content/
content/
└── wiki
├── _index.md
└── marketing
├── applying-for-official-public-mandates.md
├── conferences.md
├── fromdual-partner.md
├── _index.md
├── spam.md
└── who-is-who.md
Now run hugo -D
and enjoy your public/
folder :D
I downgraded hugo to version 0.128.2 and 0.132.2. And these versions work like a charm, at least for me.
To reproduce:
hugo new site foo
cd foo
hugo new content content/p1/index.md
hugo new content content/p1/p2.md
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes
How to reproduce: