From e1e211a42abf95447ea1007961a10fb9b091f52c Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 22 Nov 2021 02:07:48 -0600 Subject: [PATCH] Add a .Render view for subsection summary too --- layouts/_default/list.html | 21 ++------------------- layouts/_default/summary/section.html | 12 ++++++++++++ 2 files changed, 14 insertions(+), 19 deletions(-) create mode 100644 layouts/_default/summary/section.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f311767..248b7b6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -14,20 +14,7 @@ {{ with .Sections }}
{{ range . }} - - -
-

- {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} - {{ .Title | markdownify }} -

- -
- {{ partial "description-or-summary.html" . }} -
-
-
- + {{ .Render "summary/section" }} {{ end }}
{{ end }} @@ -45,10 +32,6 @@ -{{ if gt .Paginator.TotalPages 1 }} - -{{ end }} +{{ partial "pagination.html" . }} {{ end }} diff --git a/layouts/_default/summary/section.html b/layouts/_default/summary/section.html new file mode 100644 index 0000000..6abe069 --- /dev/null +++ b/layouts/_default/summary/section.html @@ -0,0 +1,12 @@ + +
+

+ {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} + {{ .Title | markdownify }} +

+ +
+ {{ partial "description-or-summary.html" . }} +
+
+