Hi! I am trying to make my first site with hugo and i need a little help. I want to make my index.html to show the latest posts
The code i found after some googling
<div class="preview">
{{ range $index, $value := first 6 (where .Pages ".Type" "Folder A") }}
<p>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ if .Params.guest }} (by {{ .Params.author }}) {{ end }}
{{ if .Draft }} <span style="color:#FF4136;">(unpublished)</span> {{ end }}
</p>
{{ if (eq $index 0) }}
<blockquote>{{ truncate 350 .Summary }}
<p><a href="{{ .RelPermalink }}">Read more</a><p>
</blockquote>
{{ end }}
{{ end }}
<br>
<p> See <a href="{{ .Site.BaseURL }}/archives"> archives</a> for more ... </p>
</div>
My layout is something like:
Content
-Folder A
—Subfolder B
—Subfolder C
-Folder D
—Subfolder E
The code above only shows the folders and not the subfolders. How i can tweak it?Thanks in advance