From 52ab987649fb6a67da6e4dfd5e17101db1c82fb0 Mon Sep 17 00:00:00 2001 From: Niklas Buschmann Date: Thu, 18 Jul 2019 23:01:53 +0200 Subject: [PATCH] update index view --- layouts/404.html | 2 +- layouts/_default/list.html | 10 ++++++++-- layouts/_default/single.html | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) 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 }} +

{{ .Title | default "Posts" }}

-{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4ff1edb..c718dbb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,4 +8,4 @@ {{ .Content }} -{{ end }} \ No newline at end of file +{{ end }}