Honestly, I was trying to extract a small repo/sample from my original repo which unfortunately is a private one in the org. The sample did not have the problem. I thought this was a common mistake people make unknowingly.
Let me give it another try to create a sample repo demonstrating the problem.
@chrillek I managed to strip down to the bare minimum and have created a sample that demonstrates the problem. I think I have included other essential parts in the repo.
Steps I followed:
hugo new site sample
hugo new theme clean
# Changed hugo.toml to hugo.yml. But it is still hugo.toml under ...sample/themes/clean.
# Update hugo.yml with `theme=clean`
hugo --cleanDestinationDir && hugo server
When you click on the blog link under the title on the page, you will see that it redirects to the same page even though it is linked to /posts.
I see that the content generated in the public/ folder for all pages have the content of the home page.
Obviously, I am missing something. Something is not interconnected right. My brain is frozen trying out different yet same set of things.
I am running this on my laptop (not in the cloud). Would it matter still? What would I update the baseURL to work on my machine (and in the cloud)? I understand it will be our domain name when running in the cloud. Not sure what it should be for running on my machine.
I was expecting when I click on blog link above, it would take me to a page with posts (using the list.html layout). It is working so in another of our repos. This repo I am working stopped working (not sure exactly when)