Index with latest posts

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") }}
      <a href="{{ .Permalink }}">{{ .Title }}</a>
      {{ if .Params.guest }} (by {{ }}) {{ end }}
      {{ if .Draft }} <span style="color:#FF4136;">(unpublished)</span> {{ end }}
    {{ if (eq $index 0) }}
      <blockquote>{{ truncate 350 .Summary }}
      <p><a href="{{ .RelPermalink }}">Read more</a><p>
    {{ end }}
  {{ end }}
  <p> See <a href="{{ .Site.BaseURL }}/archives"> archives</a> for more ... </p>

My layout is something like:
-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

.Pages only returns the direct descendents of the given page. In order to browse your site globally, you should use site.RegularPages. Note that .RegularPages do not include sections and taxonomies. Only regular pages…