From 8f36ba73689fbcb03176bd26be348cd21e6a3aaa Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 14 Nov 2021 18:57:23 -0600 Subject: [PATCH] Add series-summary.html and use .Render in taxonomy --- layouts/_default/series-summary.html | 40 ++++++++++++++++++++++++++++ layouts/taxonomy/list.html | 40 +--------------------------- 2 files changed, 41 insertions(+), 39 deletions(-) create mode 100644 layouts/_default/series-summary.html diff --git a/layouts/_default/series-summary.html b/layouts/_default/series-summary.html new file mode 100644 index 0000000..9c2f7b5 --- /dev/null +++ b/layouts/_default/series-summary.html @@ -0,0 +1,40 @@ +
+

+ {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} + {{ .Title | markdownify }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} +

+ + + +
+ {{ with .Description }} +

+ {{ . | markdownify }} +

+ {{ end }} +
+ +
+
    + {{ range .Data.Pages.Reverse }} +
  • {{ .Render "summary" }}
  • + {{ end }} +
+
+
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 68d53d7..1fe4d3d 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -28,45 +28,7 @@