{{ .Title | default "Posts" }}
-
- {{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
+ {{- range $Pages }}
- {{ if .Date }}{{ end }} {{ .Title }} @@ -12,4 +18,4 @@
diff --git a/layouts/404.html b/layouts/404.html
index 97d0f52..2582013 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -4,7 +4,7 @@
404: Page not found
Sorry, this page doesn't exist :-(
+Unfortunately, this page does not exist.
{{ end }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9775721..7fc7365 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,9 +1,15 @@ {{ define "main" }} +{{ $Pages := .Pages }} + +{{ if .IsHome }} + {{ $Pages = where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ end }} +