Skip to content

Commit

Permalink
Merge pull request #38 from CodeYourFuture/feature/sprints
Browse files Browse the repository at this point in the history
Group work by sprint
  • Loading branch information
SallyMcGrath authored Dec 5, 2023
2 parents 93208e0 + 9742bd7 commit 1cf5b10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
5 changes: 3 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ <h2 class="page-header__description">{{.Description}}</h2>
<section class="copy">{{.}}</section>
{{end}}
<h3 class="is-invisible">List of Links shown as accordions</h3>
{{ range (.Pages.ByParam "week")}} {{ partial "details.html" . }} {{ end }} {{
end}}
{{ range (.Pages.GroupByParam "week")}}
<h4>📅 Sprint {{ .Key | title }}</h4>
{{ range .Pages }} {{ partial "details.html" . }} {{end}} {{ end }} {{ end}}
29 changes: 3 additions & 26 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,8 @@
<h2 class="is-invisible">List of Links to all content organised by module</h2>
<!-- range over the fixed modules list in the site config, order them by the page param "week" and show them using this template -->
{{ range $name := $modules }}
<details>
<summary>
<h3>
<a href="{{ $baseURL }}modules/{{ $name | urlize }}">{{ $name }}</a>
</h3>
</summary>
<ol class="blocks">
{{ $moduleBlocks := (where $blocks ".Params.modules" "intersect" (slice
$name)) }} {{ range $moduleBlocks.ByParam "week" }}
<li>
<a href="{{ $baseURL }}{{ .RelPermalink }}">
<h4>{{ .Title }}</h4>
<p>
{{ range .Params.skills }}
<a
class="button button--small"
href="{{ $baseURL }}skills/{{. | urlize}}"
>{{ . }}</a
>
{{ end }}
</p>
</a>
</li>
{{ end }}
</ol>
</details>
<h3>
🧩 <a href="{{ $baseURL }}modules/{{ $name | urlize }}">{{ $name }} 🔗</a>
</h3>

{{ end }} {{ end }}

0 comments on commit 1cf5b10

Please sign in to comment.