You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ygdc/site/blueprints/pages/tnmteambrackets.yml

25 lines
881 B

title: Tournament Team Brackets
extends: pages/tournament
sections:
fields:
type: fields
fields:
participants:
label: Teams
type: structure
sortBy: title desc
fields:
member:
label: Members
text: "{{ page.forename }} {{ page.surname }} <em>({{ page.nickname }})</em>"
type: pages
sortBy: number asc
query: site.find('members').children.sortBy('forename', 'asc')
max: 2
limit: 10
pages:
text: "[{{ page.startdate.toDate('d.m.') }}] {{ page.scorers.toStructure.nth(0).member.toPages.nth(0).forename }} + {{ page.scorers.toStructure.nth(0).member.toPages.nth(1).forename }} vs. {{ page.scorers.toStructure.nth(1).member.toPages.nth(0).forename }} + {{ page.scorers.toStructure.nth(1).member.toPages.nth(1).forename }}"