From fab4cff945287663134c6f18d827a02698f37036 Mon Sep 17 00:00:00 2001 From: Travis Chen Date: Sun, 24 May 2020 12:30:46 -0700 Subject: [PATCH] Add index content if it exists If there is an _index.md file, it will be included at the top of listing pages. --- layouts/_default/list.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4936e7b..c1a81ce 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,6 +9,11 @@ {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} + {{ if len .Content }} +

{{.Title}}

+ {{ .Content }} + {{ end }} + {{ range $paginator.Pages }}