However I can’t seem to figure out how to generate the list.html page for “type” that would create a list view of all the markdown files within the “type” folder in “content”. ex. mywebsite.com/section/type
@ajhogue6 I think that what’s making this difficult for me to answer is that type and section have specific definitions in Hugo. If I’m reading your questions correctly, though, I think what you’re looking for is a list view at the following location:
layouts/section/type.html, although I haven’t tested nested content directories as you currently have your source organized. There is also this section in the current docs:
@rdwatters Hey sorry to confuse with the terminology I was using. Let me try to explain a little better. What I did was give each markdown file within the audi/ folder, a type of audi. In that way, I am trying to basically make a sub-section of audi within cars and I considered that a type whereas, cars would be a section.
from this layouts setup I can go to mywebsite.com/cars —> and see everything within that folder, However, I can’t go to mywebsite.com/cars/audi and get anything to actually render. I don’t get a 404 message, the only tag that comes in is a <pre> tag.
hopefully that makes more sense? I tried making another layout in layouts/section/audi.html but that didn’t work, again nothing loads and i just get a <pre> tag when I go to mywebsite.com/cars/audi
Hmmm. If you want to make a list of content that isn’t necessarily a section and is defined by a parameter/attribute that you define in the front matter of individual content files, I would suggest a taxonomy.
You can define in this in your config.toml file:
car = "cars"
Then in front matter, just add the make of the car to an array; for example in yaml:
You can then create a list view for yoursite.com/cars/audi that will build according to the templating you create at _default/taxonomy.html.