smol/layouts/_default/list.html
Adam Sullovey 8c4df57d4f fix list page filtering not working
When I started using the blank theme, I found urls like /tags/js would list all posts instead of just posts tagged 'js'. Changing '.Site.Pages' to 'Data.Pages' fixes this, and now my site can have lists that filter posts by category and tags.
2017-09-22 21:34:51 -04:00

10 lines
287 B
HTML

{{ partial "header.html" . }}
<main>
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
{{ partial "summary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
{{ partial "footer.html" . }}