From 9742bd7ab832196e24957075e4b957e1a5d75ac3 Mon Sep 17 00:00:00 2001 From: Sally McGrath Date: Sat, 11 Nov 2023 12:51:05 +0000 Subject: [PATCH] Group work by sprint - group and add headings showing sprint name - remove wonky details (which seems to expect to do this already but doesn't) from home page and link straight to module view with sprint --- layouts/_default/list.html | 5 +++-- layouts/index.html | 29 +++-------------------------- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 037740e..d99dfa7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,5 +9,6 @@

{{.Description}}

{{.}}
{{end}} -{{ range (.Pages.ByParam "week")}} {{ partial "details.html" . }} {{ end }} {{ -end}} +{{ range (.Pages.GroupByParam "week")}} +

📅 Sprint {{ .Key | title }}

+{{ range .Pages }} {{ partial "details.html" . }} {{end}} {{ end }} {{ end}} diff --git a/layouts/index.html b/layouts/index.html index 78a8381..5c92880 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,31 +7,8 @@ {{ range $name := $modules }} -
- -

- {{ $name }} -

-
-
    - {{ $moduleBlocks := (where $blocks ".Params.modules" "intersect" (slice - $name)) }} {{ range $moduleBlocks.ByParam "week" }} -
  1. - -

    {{ .Title }}

    -

    - {{ range .Params.skills }} - {{ . }} - {{ end }} -

    - -
  2. - {{ end }} -
-
+

+ 🧩 {{ $name }} 🔗 +

{{ end }} {{ end }}