I’ve been banging my head on the same issue for 3 or so days now and I figured it might make sense to ask for some help. I am by no means a Hugo expert so please bear with me if I say things that seem silly in the eye of you experts.
The problem I’m running into: my permalinks are not working (throwing a 404).
I really feel like I did a thorough search and experimented with trying out my own solutions before attempting to ask for help. The problem is that I am an extreme novice at Hugo (this is my first time trying to change anything but a default template) and am running into a lot of issues (which makes it hard to fix things because five things are breaking at the same time).
Make sure not to use a forward slash / in the beginning of a URL , because it will point to the host root and Hugo will not generate the correct URL for the demo’s assets.
I tried changing permalink: /Loading_scikit_learn_iris_datset to permalink: Loading_scikit_learn_iris_datset but that didn’t seem to fix it
What strikes me as odd is that sometimes the generated links do work and sometimes they don’t
This sets the full permalink of that page. If you wish to only change the part at the end and keep the automatic folder parts then slug is your friend.
Check the documentation on Fronmatter about details:
Your theme adds the baseURL in front of normal URLs. If your site is inside of the folder notes, that’s ok. If not, then the baseURL parameter should not have the notes part. Your repo is set up to be in the subfolder notes of your domain. So what Hugo does is right.
I am still very confused and unsure how to continue. Perhaps if I explain again what I want to achieve you can tell me whether there is any rhyme or reason to what I am doing
I have several markdown files that I want to display. They are structured in the content directory as follows
Of course I only want to show the markdown files, and not the .ipynb files. I want to automatically group these into categories as displayed in the image below:
I want to automatically generate this code above for each top level directory in content to automatically generate the tables to show the content.
Am I maybe grabbing the sections incorrectly?
In essence, I want to loop over my sections and then loop over the files in each section and show them in tables. That’s it. But it seems that my sections are empty.