diff --git a/layouts/index.html b/layouts/index.html index c8aeb26..f877f05 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,8 @@ {{ define "main" }} {{ .Content }} - {{ if gt ( len ( where .Pages "Section" "posts" )) 0 }} + {{ if gt ( len ( where .Site.RegularPages "Section" "posts" )) 0 }}

Recent Posts

- {{ range first 2 ( where .Pages "Section" "posts" ) }} + {{ range first 2 ( where .Site.RegularPages "Section" "posts" ) }}

{{ if .Draft }}(Draft) {{ end }}{{ .Title }}