From 4a5e3eb1f4c06f07f517c48d0a7223c37b562985 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Wed, 4 Jan 2017 02:52:47 +0100 Subject: [PATCH] Change the default list display a content and a list Inside a section, you can have a name_of_the_section.md with a content displayed before the list --- layouts/_default/list.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 52fe67e..48dbd99 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,14 +2,23 @@
+ {{ $globalTitle := .Title}} +
+ {{ range .Data.Pages }} + {{ if eq .Title $globalTitle }} + {{ .Content }} + {{ end }} + {{ end }} +
{{ .Title }}
    {{ range .Data.Pages.ByPublishDate }} - {{ partial "li.html" . }} + {{ if ne .Title $globalTitle }} + {{ partial "li.html" . }} + {{ end }} {{ end }}
{{ partial "footer.html" . }} -