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/tournament.yml

34 lines
1015 B

2 months ago
title: Tournament
create:
status: listed
sections:
fields:
type: fields
fields:
participants:
width: 9/12
2 months ago
label: Participants
type: pages
sortBy: number asc
query: site.find('members').children.sortBy('forename', 'asc')
2 months ago
text: "{{ page.forename }} {{ page.surname }} <em>({{ page.nickname }})</em>"
date:
width: 3/12
label: End Date
2 months ago
type: date
default:
width: 1/1
label: Template
type: pages
max: 1
query: site.find("Templates").drafts
2 months ago
pages:
type: pages
label: Games
template: xoi
text: "[{{ page.startdate.toDate('d.m.') }}] {{ page.scorers.toStructure.nth(0).member.toPages.nth(0).forename }} {{ page.scorers.toStructure.nth(0).member.toPages.nth(0).surname }} vs. {{ page.scorers.toStructure.nth(1).member.toPages.nth(0).forename }} {{ page.scorers.toStructure.nth(1).member.toPages.nth(0).surname }}"
2 months ago
sortBy: startdate desc
status: unlisted