From 046e8b9be6a1136a2dc820b2c95f0694d2ee8296 Mon Sep 17 00:00:00 2001 From: Luvv Aggarwal <67058817+LuvvAggarwal@users.noreply.github.com> Date: Sun, 18 Jun 2023 13:18:08 +0530 Subject: [PATCH] Created a list layout for stories I have created a new summary-with-tags for showing tags in list layout --- layouts/_default/summary-with-tags.html | 20 ++++++++++++++++++++ layouts/stories/list.html | 15 +++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 layouts/_default/summary-with-tags.html create mode 100644 layouts/stories/list.html diff --git a/layouts/_default/summary-with-tags.html b/layouts/_default/summary-with-tags.html new file mode 100644 index 0000000..1e0aa97 --- /dev/null +++ b/layouts/_default/summary-with-tags.html @@ -0,0 +1,20 @@ +
+
+ {{with .CurrentSection.Title }}{{ . }}{{end}} +

+ + {{ .Title }} + +

+ +
+ {{ range sort .Params.tags }} +
+ {{.}} +
+ {{end}} +
+
+
\ No newline at end of file diff --git a/layouts/stories/list.html b/layouts/stories/list.html new file mode 100644 index 0000000..37495e2 --- /dev/null +++ b/layouts/stories/list.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+
+ {{ .Content }} +
+ + {{ template "_internal/pagination.html" . }} +
+{{ end }}