diff --git a/layouts/home.html b/layouts/home.html index 99e1b27..228552d 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -6,20 +6,25 @@ {{ range .Site.Taxonomies.tags }}

{{ .Page.Title }} ({{ len . }})

-
{{ end }} {{- end }} -

All Pages

+ {{ with where .Site.RegularPages "Draft" true }} +

Drafts

+ {{ partial "inline/postList.html" . }} + {{ end }} + {{ with where .Site.RegularPages "Draft" false }} +

All Pages

+ {{ partial "inline/postList.html" . }} + {{ else }} +

No pages found

+ {{ end }} +{{ end }} + +{{ define "partials/inline/postList.html" }}