diff --git a/themes/angels-ladder/layouts/index.html b/themes/angels-ladder/layouts/index.html index 0ab24ae..dad2740 100644 --- a/themes/angels-ladder/layouts/index.html +++ b/themes/angels-ladder/layouts/index.html @@ -5,20 +5,22 @@ –––––––––––––––––––––––––––––––––––––––––––––––––– --> Recent Articles - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} {{ range $paginator.Pages }} - - {{ .Title }} {{ if .Draft }}:: DRAFT{{end}} - - {{ .Date.Format "Jan 2, 2006" }} - {{ range .Params.categories }} - #{{ . }} - {{ end }} - {{ range .Params.tags }} - #{{ . }} - {{ end }}: {{ .Description }} - - + {{ if eq .Kind "page" }} + + {{ .Title }} {{ if .Draft }}:: DRAFT{{end}} + + {{ .Date.Format "Jan 2, 2006" }} + {{ range .Params.categories }} + #{{ . }} + {{ end }} + {{ range .Params.tags }} + #{{ . }} + {{ end }}: {{ .Description }} + + + {{ end }} {{ end }} @@ -26,7 +28,7 @@ - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} {{ if .Paginator.HasPrev }} Prev {{ end }}