Hi all,
I’m trying to learn the basics of Hugo by doing a small website with a few different static pages using the same layout. No blog or complicated things. I wish to do my own theme or layout since no themes that already exists really suits my need.
I was not expecting that much trouble into making that happen to be honest… !
My issue is that I can’t generate anything else that the index page ! And I fail to see any logs and debug output that can help me.
I tried different tutorial, only a few that explains from scratch. The best one I’ve found so far is this one and it does not work for me.
I’m running hugo v0.38.2.
For the sake of clarity, here’s what does not work for me:
hugo new site .
cat > layouts/index.html <<EOF
<html>
<body>
hello
</body>
</html>
EOF
hugo new about.md
echo "Helllo about" >> content/about.md
hugo
There’s no about page ever created. I tried filling in layouts/_default/single.html
with:
<html>
<body>
{{ .Content }}
</body>
</html>
But nothing gets created except the index.html page…
What am I missing ?
I know this is a Hugo-beginner question and there’s probably something huge I missed from my side, but I would have hoped that this type of basic tasks would have been a bit easier and clearer for Hugo-beginners… It may be worth adding some doc for covering that scenario. Just saying…
Thanks a lot !