From 6b9325c285df0d23d6a656d328051a00f9832481 Mon Sep 17 00:00:00 2001 From: Michael Noronha Date: Thu, 18 Apr 2019 02:18:43 +0000 Subject: [PATCH] Allow descriptions on sections besides home (#120) --- layouts/_default/section.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 2cbd306..e539a01 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -4,11 +4,21 @@
{{ .Title }}
+ + {{ range where .Data.Pages "Title" .Title }} +
+

{{ .Content }}

+
+ {{ end }} + + {{ $sectionTitle := .Title }}
    {{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
  • {{ .Key }}
  • {{ range sort .Pages "Date" "desc" }} + {{ if (not (eq $sectionTitle .Title)) }} {{ partial "li.html" . }} + {{ end }} {{ end }} {{ end }}