You can simply put the blog folder out of the media folder, it will solve your issue,
Or you can set every post layout=blog and create blog.html in layout/default folder (which is actually your blog/single.html file.
I don’t see how that’s going to give me media/blogs in the url mysite.com/media/blogs.
Correct me if I’m wrong this has nothing to do with the singles.
Also I need to display a the list of items from a section {{ $paginator := .Paginate (where site.RegularPages "Section" "==" "blogs" ) }} I don’t see how your solution is going to solve this, unless I’m missing something.
As per the docs, content/foo/bar/baz/index.md will give you yoursite.com/foo/bar/baz/
Layout structure.
As per the responses above, create layouts/_default/whatever.html and set layout=whatever in the frontmatter of whatever content you want to use this layout.
I feel like you’re assuming I am having an issue with the singles when I’m not. I’m trying to access the list of content FROM the directory. This has NOTHING to do with singles.
This is the problem I have a media directory that has a list.html that only contains “This is a list” then I have a sub directory blog folder:
When I go to mysite.com/media/blogs I should see “This is a blog” but I see “This is media”:
This has nothing to do with singles content. I need this structure so I can sub directory out content and drive the logic through directories. Is this possible? Or is this a bug?
I read that, I’m sorry but I don’t see why I’m not able to view my list of blog content, from the path /media/blogs the page keeps serving up my /'media list.html
I also put the content folder in the root of my project and the exact same thing. Can someone run the code I uploaded wes-kay/hugo_testing_list_children (github.com) and show me that localhost:1313/media/blogs is displaying “This is a blog” because I don’t see what the issue is.
This tells me that what I am trying to do is not possible. Can you confirm it. All I need is to be able to serve my content from the specified list.html I need to see “This is a blog” from the media/blogs URL.
You’ve pointed me to multiple document pages and none of them are helping and all of them don’t answer my question.
I also have layout: blogs on the blog-text.md just showed the _index for a quick image.
And I’m still not getting the layout I need:
Can you do me a favor and pull the repo I uploaded and show me how I can get localhost:1313/media/blogs to show a list of the content I have. Because I don’t see how this is possible with what you’re suggesting. What I understand is you’re telling me how to point the single content to the corrent layout, that’s not what I’m asking, I need the list of content so I can paginate them.