Content List appearing at end of $.Site.Pages


I just found an strange issue.

    {{ range where $.Site.Pages ".Type" "faq" }}
        <summary>{{ .Title | safeHTML | markdownify }}</summary>
        {{ .Content }}
    {{ end }}

At the end of previous loop, a .Kind section appears, with no .Content and only the section title.

I’m running Hugo Static Site Generator v0.21 darwin/amd64 BuildDate: 2017-05-23T17:11:54-03:00.

Thank you.

Try .Site.RegularPages.

Thank you! It looks like Hugo is changing faster than I can keep up.

Thank you.

1 Like