Group taxonomy
This commit is contained in:
parent
80ee79a696
commit
9b749c54a8
5
content/groups/_index.md
Normal file
5
content/groups/_index.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Groupes
|
||||
---
|
||||
|
||||
Tous les groupes associés aux joueurs
|
7
content/groups/test/_index.md
Normal file
7
content/groups/test/_index.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: Groupe de test
|
||||
groups:
|
||||
- test
|
||||
---
|
||||
|
||||
Hello world
|
18
themes/acoeur/layouts/_default/group.html
Normal file
18
themes/acoeur/layouts/_default/group.html
Normal 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 }}
|
30
themes/acoeur/layouts/_default/group.terms.html
Normal file
30
themes/acoeur/layouts/_default/group.terms.html
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user