I am trying to filter the main landing page on my site to a particular content type. “posts”. Any idea what I am doing wrong here.
`{{ define "main" }}`
`<div ref="streamContainer" class="stream-container">`
`<div class="post-list-container post-list-container-no-background">`
`{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}`
`{{ range $paginator.Pages }}`
`{{.Type}}<br>`
`{{ end }}`
`</div>`
`{{ end }}`
My understanding is that “Type” is picked up from the first directory of my content which is either “tech” or “posts”
Here Is the full code.
Although my site is originally based on a template, I have made enough changes to it that I have pulled it into my git repo.