I have a list of projects, with images for each of them. They are in the following structure:
\content
\works
_index.md # title: Works
\project01
index.md
img01.jpg
img02.jpg
\project02
index.md
foo.jpg
bar.jpg
I would like to list the projects in the navigation as follows:
<ul class="menu">
{{ range .Site.Sections }}
<li>{{ .Title }}
<ul class="sub-menu">
{{ range .Pages }}
<li>
<a href="{{ . }}">{{ . }}</a>
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
The top level link (Works) is displayed correctly, but the projects are not.
Additionally I would like to just generate one file for all of the projects without having single pages per projects. For this would it be enough to just define the list.html and not define the single.html in the layouts directory?