Group taxonomy

This commit is contained in:
echarp 2022-11-28 16:26:39 +01:00
parent 80ee79a696
commit 9b749c54a8
4 changed files with 60 additions and 0 deletions

5
content/groups/_index.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Groupes
---
Tous les groupes associés aux joueurs

View File

@ -0,0 +1,7 @@
---
title: Groupe de test
groups:
- test
---
Hello world

View File

@ -0,0 +1,18 @@
{{ define "main" }}
<section class="pa3 pa4-ns nested-copy-line-height
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
{{ with .Content }}
<section id="content"
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
{{- . -}}
</section>
{{ end }}
{{ range .Pages }}
{{ .Render "summary-with-image" }}
{{ range (.Paginate .RegularPagesRecursive).Pages }}
{{ .Title }}
{{ end }}
{{ end }}
</section>
{{ end }}

View File

@ -0,0 +1,30 @@
{{ define "main" }}
<section class="pa3 pa4-ns nested-copy-line-height
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
<aside id="actions" class="w-30-l mt4-l fr tc">
{{ if .Parent.IsHome }}
<button id="create"
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }}
</button>
{{ else if .Parent.Parent.IsHome }}
<button id="delete"
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer"
data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }}
</button>
{{ end }}
</aside>
{{ with .Content }}
<section id="content"
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
{{- . -}}
</section>
{{ end }}
{{ range .Pages }}
{{ .Render "summary-with-image" }}
{{ end }}
</section>
{{ end }}