Skip to content

Bern Capitals · library

Block library

All blocks with their example data and schema.

How the site works · Brand guide · Design system · Blocks · Site

Block · agenda

Agenda

Upcoming games. Sorted by date; games before the build date are hidden and the next one is highlighted in yellow. Games can be written by hand or come from Swiss Unihockey via {"$data": "swissunihockey/teams/<id>.json#/games"}.

blocks/agenda/block.htmlblocks/agenda/block.cssblocks/agenda/schema.jsonblocks/agenda/example.jsonblocks/agenda/block.mjs

Data fields (23)
FieldTypeRequiredDescriptionRules
anchorstringid for in-page links, e.g. «agenda» for #agenda.pattern ^[a-z][a-z0-9-]*$
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title.≤ 40 chars
clubNamestringOur name in the match line; defaults to the site name.≤ 40 chars
limitintegerMaximum number of games shown.1–60 · default 10
showPastbooleanAlso show games before the build date.default false
emptyTextstringShown when no upcoming games remain.≤ 120 chars
moreLinkobjectOptional link to the full schedule.
moreLink.labelstringyesLink text.≤ 30 chars
moreLink.hrefstringyesTarget URL.uri-reference
gamesobject[]yesGames, in any order.≤ 1000 items
games[].idintegerSwiss Unihockey game id (from sync).
games[].datestringyesGame day, YYYY-MM-DD.date
games[].timestringStart time, HH:MM (omit if not yet fixed).time
games[].opponentstringyesOpponent's club name.≤ 60 chars
games[].homebooleanyestrue for home games (we are named first).
games[].venuestringyesHall, e.g. «Sporthalle Moos».≤ 80 chars
games[].citystringTown of the hall, e.g. «Gümligen».≤ 40 chars
games[].teamstringWhich Caps team plays, e.g. «Herren 1. Liga».≤ 50 chars
games[].competitionstringLeague and group or cup (from sync).≤ 80 chars
games[].resultstringFinal score home:away; set for played games.pattern ^\d+:\d+$
games[].resultNotestringAfter overtime (n.V.) or penalty shootout (n.P.).one of "n.V.", "n.P."
games[].ticketUrlstringOptional ticket link.uri-reference

Example rendered from example.json ↓

Heimspiele

Agenda

  1. So 22.11. 16:00

    Nächstes Spiel · Heimspiel

    Bern Capitals – Lions Konolfingen

    Sonntag, 22. November 2026, 16:00 Uhr · Sporthalle Moos

  2. So 06.12. 18:00

    Heimspiel

    Bern Capitals – Black Creek Schwarzenbach

    Sonntag, 06. Dezember 2026, 18:00 Uhr · Sporthalle Moos

Block · article-header

Article header

Top of a news article: date, optional kicker (team), title (h1), lead and an optional main photo. The body follows as a prose block.

blocks/article-header/block.htmlblocks/article-header/block.cssblocks/article-header/schema.jsonblocks/article-header/example.jsonblocks/article-header/block.mjs

Data fields (11)
FieldTypeRequiredDescriptionRules
titlestringyesArticle title (h1).≤ 200 chars
datestringyesPublication date.date
kickerstringTeam or category, e.g. «Herren 1. Liga».≤ 60 chars
leadstringLead paragraph.≤ 600 chars
imageobjectMain photo.
image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp|gif)$
image.altstringyesWhat the photo shows.≤ 200 chars
image.captionstringCaption / photo credit.≤ 200 chars
backLinkobjectLink back to the archive.
backLink.labelstringyesLink text.≤ 40 chars
backLink.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

← Alle News

· Herren 1. Liga

1. Liga: Sieg in der Verlängerung nach Ausgleich in Extremis

Als alles schon nach einer Niederlage gegen Züri Süd aussieht, schlägt Olle Asklöf mit einem Backhandhammer zu.

Block · code

Code sample

A code or file example for documentation pages, shown as-is in a monospaced box with an optional title and explanation.

blocks/code/block.htmlblocks/code/block.cssblocks/code/schema.jsonblocks/code/example.json

Data fields (4)
FieldTypeRequiredDescriptionRules
titlestringWhat the sample shows, e.g. a file path.≤ 80 chars
captionstringOne or two sentences explaining the sample.≤ 400 chars
languagestringKind of code, shown as a label.one of "json", "bash", "css", "html", "markdown", "text"
codestringyesThe code, exactly as it should appear (line breaks kept).≤ 6000 chars

Example rendered from example.json ↓

content/pages/teams.jsonjson
{
  "template": "page",
  "title": "Teams",
  "regions": {
    "main": [
      { "block": "prose", "data": { "markdown": "## Aktive\n\nAlle Teams …" } }
    ]
  }
}

A page is a JSON file: a template, a title and the blocks of each region.

Block · cta-band

Call-to-action band

A full-width band with one message and one button: 100er Club, Probetraining, Helfer:innen. Yellow («line») or black («ink»).

blocks/cta-band/block.htmlblocks/cta-band/block.cssblocks/cta-band/schema.jsonblocks/cta-band/example.jsonblocks/cta-band/block.mjs

Data fields (7)
FieldTypeRequiredDescriptionRules
tonestringline = yellow band, ink = black band.one of "line", "ink" · default "line"
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesThe message.≤ 70 chars
textstringOne supporting sentence.≤ 240 chars
linkobjectyesThe button.
link.labelstringyesButton text.≤ 28 chars
link.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

100er Club

Gönner:in werden und unseren Nachwuchs stärken!

Jeder Beitrag ist ein Pass an die nächste Generation.

Mehr erfahren

Block · downloads

Downloads

Files to download (PDF, Word, …), optionally grouped. «covers» shows a cover image per file (e.g. the Season Guides).

blocks/downloads/block.htmlblocks/downloads/block.cssblocks/downloads/schema.jsonblocks/downloads/example.jsonblocks/downloads/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
titlestringHeading.≤ 80 chars
introstringShort introduction.≤ 400 chars
layoutstringlist = cards, covers = cover images.one of "list", "covers" · default "list"
groupsobject[]yesGroups of files.≥ 1 items · ≤ 20 items
groups[].namestringGroup heading (optional).≤ 80 chars
groups[].filesobject[]yesFiles in this group.≥ 1 items · ≤ 60 items
groups[].files[].labelstringyesVisible name.≤ 120 chars
groups[].files[].hrefstringyesFile under /media/… or an external URL.uri-reference
groups[].files[].sizestringDisplay size, e.g. «0.2 MB».≤ 20 chars
groups[].files[].coverobjectCover image (covers layout).
groups[].files[].cover.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
groups[].files[].cover.altstringyesAlternative text.≤ 120 chars

Example rendered from example.json ↓

Downloads

Block · embed

Embed

An embedded external tool in a sandboxed iframe. Only allow-listed services (currently helfereinsatz.ch) are accepted.

blocks/embed/block.htmlblocks/embed/block.cssblocks/embed/schema.jsonblocks/embed/example.jsonblocks/embed/block.mjs

Data fields (4)
FieldTypeRequiredDescriptionRules
titlestringOptional heading.≤ 80 chars
srcstringyesEmbed URL (allow-listed hosts only).pattern ^https://www\.helfereinsatz\.ch/[\w/.?=&-]*$
frameTitlestringyesAccessible name of the embedded content.≤ 80 chars
heightintegerHeight in pixels.200–3000 · default 800

Example rendered from example.json ↓

Block · gallery

Gallery

A grid of photos; each opens in full size.

blocks/gallery/block.htmlblocks/gallery/block.cssblocks/gallery/schema.jsonblocks/gallery/example.json

Data fields (5)
FieldTypeRequiredDescriptionRules
titlestringOptional heading.≤ 80 chars
imagesobject[]yesPhotos in order.≥ 1 items · ≤ 120 items
images[].srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp|gif)$
images[].altstringyesWhat the photo shows.≤ 200 chars
images[].captionstringCaption.≤ 200 chars

Example rendered from example.json ↓

Block · game-recap

Game recap («Kein Tor ohne Pass»)

The last game told through its passes: score, periods, and every goal. Our goals show the passer first, joined to the scorer by the yellow line. Usually {"$data": "swissunihockey/teams/<id>.json#/lastGame"} for «game».

blocks/game-recap/block.htmlblocks/game-recap/block.cssblocks/game-recap/schema.jsonblocks/game-recap/example.jsonblocks/game-recap/block.mjs

Data fields (25)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title, e.g. «Letztes Spiel».≤ 50 chars
markerstringHand-written line, e.g. «Kein Tor ohne Pass.»≤ 40 chars
linkobjectOptional link, e.g. to the match report.
link.labelstringyesLink text.≤ 40 chars
link.hrefstringyesTarget URL.uri-reference
gameobjectyesThe game.
game.idintegerSwiss Unihockey game id.
game.datestringGame day.date
game.timestringStart time.time
game.competitionstringLeague/group or cup.≤ 120 chars
game.homestringyesHome team.≤ 60 chars
game.awaystringyesAway team.≤ 60 chars
game.resultstringyesFinal score home:away.pattern ^\d+:\d+$
game.resultNotestringAfter overtime or penalty shootout.one of "n.V.", "n.P."
game.periodsstring[]Score per period (and overtime).≤ 5 items
game.venuestringHall and town.≤ 100 chars
game.spectatorsintegerNumber of spectators.0–…
game.goalsobject[]yesGoals in order.≤ 40 items
game.goals[].minuteintegeryesGame minute.0–99
game.goals[].scorerstringyesWho scored.≤ 60 chars
game.goals[].assiststringWho passed (the assist).≤ 60 chars
game.goals[].scorestringyesScore after the goal, home:away.pattern ^\d+:\d+$
game.goals[].sidestringWhich side scored.one of "home", "away"
game.goals[].oursbooleantrue for our goals (highlighted, passer first).

Example rendered from example.json ↓

Letztes Spiel

Spielbericht

Kein Tor ohne Pass.

Bern Capitals

6:5 n.V.

Züri Süd

(1:2, 3:2, 1:1, 1:0)

Sonntag, 08. November 2026 · Sporthalle Moos, Gümligen · 90 Zuschauer

Herren GF 1. Liga Gruppe 1

2 von 2 Toren mit Assist

  1. 53' N. Kestenholz (M. Müller) 4:5
  2. 60' J. Bolliger O. Asklöf 5:5
  3. 65' O. Hammarqvist O. Asklöf 6:5

Block · hero-pass

Hero with pass line

Opening section: headline left, a 3:2 action photo right with the yellow pass line drawn between two players. Coordinates are percent of the photo (0 = left/top, 100 = right/bottom).

blocks/hero-pass/block.htmlblocks/hero-pass/block.cssblocks/hero-pass/schema.jsonblocks/hero-pass/example.jsonblocks/hero-pass/block.mjs

Data fields (20)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the headline.≤ 40 chars
headlinestringyesMain headline (uppercase display type).≤ 60 chars
markerstringHand-written yellow line under the headline.≤ 40 chars
textstringLead paragraph.≤ 280 chars
ctasobject[]Up to two buttons; the first is solid yellow, the second outlined.≤ 2 items
ctas[].labelstringyesButton text.≤ 28 chars
ctas[].hrefstringyesTarget: site path, #anchor or full URL.uri-reference
imageobjectyesAction photo, cropped to 3:2.
image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
image.altstringyesWhat the photo shows.≤ 160 chars
image.creditstringPhotographer, shown small in the corner.≤ 60 chars
passobjectyesThe yellow line: from the passer to the receiver/scorer.
pass.fromobjectyesStart (the person who made it possible).
pass.from.xnumberyesPercent from the left edge of the photo.0–100
pass.from.ynumberyesPercent from the top edge of the photo.0–100
pass.toobjectyesEnd (receiver or goal).
pass.to.xnumberyesPercent from the left edge of the photo.0–100
pass.to.ynumberyesPercent from the top edge of the photo.0–100
pass.bendnumberCurve strength; negative bends the other way.-0.6–0.6 · default 0.25
pass.labelstringHand-written note at the start, e.g. «Assist #16».≤ 24 chars

Example rendered from example.json ↓

Feel the Caps Spirit

Kein Tor ohne Pass.

Gemeinsam.

Die gelbe Linie zeigt, wer ein Tor möglich macht: auf dem Feld, an der Bande und im Kiosk.

Zwei Bern-Capitals-Spieler jubeln nach einem Tor in der Halle Teamspirit

Block · info-cards

Info cards

Facts as cards: prices, contact details, opening hours. A card can show a big value (e.g. «CHF 5.–»), lines of text and a link.

blocks/info-cards/block.htmlblocks/info-cards/block.cssblocks/info-cards/schema.jsonblocks/info-cards/example.jsonblocks/info-cards/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 60 chars
titlestringHeading.≤ 80 chars
introstringIntroduction.≤ 400 chars
notestringSmall print below the cards.≤ 300 chars
cardsobject[]yesCards, left to right.≥ 1 items · ≤ 8 items
cards[].titlestringyesCard title.≤ 80 chars
cards[].valuestringBig value, e.g. a price.≤ 30 chars
cards[].highlightbooleanYellow card.
cards[].linesstring[]Text lines.≤ 8 items
cards[].linkobjectOptional link (also tel:/mailto:).
cards[].link.labelstringyesLink text.≤ 60 chars
cards[].link.hrefstringyesTarget.uri-reference

Example rendered from example.json ↓

Tickets

  • Erwachsene

    CHF 5.–

  • Season Card

    CHF 40.–

    Alle Heimspiele der 1. Mannschaft

Barzahlung und TWINT möglich.

Block · league-table

League table

Standings of the group a team plays in, our row highlighted. Usually {"$data": "swissunihockey/teams/<id>.json#/ranking"} for «table».

blocks/league-table/block.htmlblocks/league-table/block.cssblocks/league-table/schema.jsonblocks/league-table/example.jsonblocks/league-table/block.mjs

Data fields (21)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title.≤ 40 chars
tableobjectyesThe standings.
table.titlestringyesLeague and group, e.g. «Tabelle Herren GF 1. Liga Gruppe 1 2026/27».≤ 120 chars
table.asOfstringDate the table refers to.date
table.rowsobject[]yesOne row per team, in rank order.≥ 1 items · ≤ 20 items
table.rows[].rankintegeryesPosition.1–…
table.rows[].teamstringyesTeam name.≤ 60 chars
table.rows[].teamIdintegerSwiss Unihockey team id.
table.rows[].gamesintegeryesGames played (Sp).0–…
table.rows[].winsintegerWins in regular time (S).0–…
table.rows[].otWinsintegerWins after overtime/shootout (SnV).0–…
table.rows[].otLossesintegerLosses after overtime/shootout (NnV).0–…
table.rows[].lossesintegerLosses in regular time (N).0–…
table.rows[].goalsstringGoals for:against.pattern ^\d+:\d+$
table.rows[].diffstringGoal difference.pattern ^[+-]?\d+$
table.rows[].pointsintegeryesPoints (P).0–…
table.rows[].isUsbooleanHighlights our row.
linkobjectOptional link below the table.
link.labelstringyesLink text.≤ 40 chars
link.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

Tabelle

Herren GF 1. Liga Gruppe 1 2026/27 · Stand 19.11.2026
Rg. Team Sp S SnV NnV N Tore TD P
1 Unihockey Emme 1210101 79:50+2932
2 Bern Capitals 137213 88:66+2226
3 Züri Süd 126132 65:60+523

Block · library-entry

Library entry

Documentation header for one block in the block library (generated by build.mjs from the block's schema).

blocks/library-entry/block.htmlblocks/library-entry/block.cssblocks/library-entry/schema.jsonblocks/library-entry/example.json

Data fields (10)
FieldTypeRequiredDescriptionRules
namestringyesBlock folder name; also the anchor.pattern ^[a-z][a-z0-9-]*$
titlestringyesSchema title.
descriptionstringyesSchema description.
filesstring[]yesThe block's files.
fieldsobject[]yesFlattened schema fields.
fields[].pathstringyesDotted field path; [] marks list items.
fields[].typestringyesJSON type.
fields[].requiredbooleanyesWhether the field is required.
fields[].descriptionstringyesField description.
fields[].rulesstringyesConstraints in short form.

Example rendered from example.json ↓

Block · example-block

Example block

What a library entry looks like.

blocks/example-block/block.htmlblocks/example-block/schema.json

Data fields (1)
FieldTypeRequiredDescriptionRules
titlestringyesSection title.≤ 40 chars

Example rendered from example.json ↓

Block · link-cards

Link cards

Cards linking to related pages (e.g. the sub-pages of a section), each with an optional short description.

blocks/link-cards/block.htmlblocks/link-cards/block.cssblocks/link-cards/schema.jsonblocks/link-cards/example.jsonblocks/link-cards/block.mjs

Data fields (5)
FieldTypeRequiredDescriptionRules
titlestringHeading.≤ 80 chars
linksobject[]yesLinked pages.≥ 1 items · ≤ 12 items
links[].labelstringyesPage name.≤ 60 chars
links[].hrefstringyesTarget.uri-reference
links[].textstringOne-line description.≤ 160 chars

Example rendered from example.json ↓

Block · match-cards

Match cards («Die gelbe Linie»)

Social-post style cards from the brand idea, filled with live data. «matchday»: the next home game with two portraits joined by the yellow pass line. «goal»: the last goal with an assist from the latest match report — scorer large, assist in a circle, the line between them. Player photos for the goal card come from a per-team player list (name → photo); without one the card shows initials.

blocks/match-cards/block.htmlblocks/match-cards/block.cssblocks/match-cards/schema.jsonblocks/match-cards/example.jsonblocks/match-cards/block.mjs

Data fields (24)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 60 chars
titlestringSection title.≤ 60 chars
markerstringHand-written line, e.g. «Kein Tor ohne Pass.»≤ 40 chars
clubShortstringShort club name on the cards.≤ 20 chars · default "Caps"
logostringClub badge shown on the cards.pattern ^/media/.+\.(png|svg|jpe?g|webp)$
cardsobject[]yesCards, left to right. Cards without data (e.g. no upcoming home game) are left out.≥ 1 items · ≤ 4 items
cards[].typestringyesCard type.one of "matchday", "goal"
cards[].teamstringyesTeam label, e.g. «Herren 1. Liga».≤ 40 chars
cards[].gamesobject[]matchday: the team's games (the next home game is used).≤ 1000 items
cards[].games[].datestringyesGame day.date
cards[].games[].timestringStart time.time
cards[].games[].opponentstringyesOpponent.
cards[].games[].homebooleanyesHome game.
cards[].games[].venuestringyesHall.
cards[].games[].citystringTown.
cards[].games[].resultstringResult, if played.
cards[].photosobject[]matchday: two portraits (4:5, black backdrop).≥ 2 items · ≤ 2 items
cards[].photos[].srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
cards[].photos[].altstringyesAlternative text.≤ 160 chars
cards[].gameobject | nullgoal: the match report (usually …#/lastGame).
cards[].playersobject[]goal: player list name → photo (content/data/players/<team>.json#/players).≤ 80 items
cards[].players[].namestringyesName as in the match reports, e.g. «O. Asklöf».≤ 60 chars
cards[].players[].numberintegerShirt number.0–99
cards[].players[].photostringPortrait.pattern ^/media/.+\.(jpe?g|png|webp)$

Example rendered from example.json ↓

Die gelbe Linie

Matchday

Kein Tor ohne Pass.

Block · member-area

Member area

Login by e-mail code and the member's own data from Webling: profile, children (for parents), invoices and messages. The data comes from the members Worker's /api; where that API is not available (e.g. the plain WREN site) a note with a link is shown instead.

blocks/member-area/block.htmlblocks/member-area/block.cssblocks/member-area/schema.jsonblocks/member-area/example.jsonblocks/member-area/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the heading.≤ 40 chars
titlestringyesPage heading.≤ 60 chars
introstringText above the login form.≤ 300 chars
contactobjectyesWhere members send corrections to their data («Änderung melden»).
contact.emailstringyesAddress of the Geschäftsstelle.email
contact.labelstringLink text, default «Änderung melden».≤ 40 chars
unavailableobjectyesShown where the members API is not reachable.
unavailable.textstringyesExplanation.≤ 200 chars
unavailable.linkobjectWhere the member area works.
unavailable.link.labelstringyesLink text.≤ 60 chars
unavailable.link.hrefstringyesTarget.uri-reference
demobooleanShow made-up example data instead of calling the API (for the block library).

Example rendered from example.json ↓

Bern Capitals

Mitgliederbereich

Einen Moment …

Block · news-archive

News archive

News overview: the newest articles as photo cards (the first one large), optional team filter chips, then all older articles by year as compact rows with thumbnails and a sticky year bar. Usually filled with {"$pages": {"dir": "news", "fields": ["kicker", "thumb"]}} (optionally "tag": "<team>").

blocks/news-archive/block.htmlblocks/news-archive/block.cssblocks/news-archive/schema.jsonblocks/news-archive/example.jsonblocks/news-archive/block.mjs

Data fields (23)
FieldTypeRequiredDescriptionRules
levelinteger1 = the title is the page heading (h1).one of 1, 2 · default 2
eyebrowstringSmall line above the title.≤ 60 chars
titlestringyesHeading.≤ 80 chars
introstringShort introduction.≤ 400 chars
featuredintegerHow many of the newest articles are shown as photo cards (the first one large).0–9 · default 5
limitintegerShow only the newest N articles.1–2000
filtersobject[]Filter chips (links to team news pages); the current one is highlighted.≤ 12 items
filters[].labelstringyesChip text.≤ 40 chars
filters[].hrefstringyesTarget page.uri-reference
filters[].currentbooleanMarks the chip of this page.
moreLinkobjectOptional link below the list (e.g. to the full team news page).
moreLink.labelstringyesLink text.≤ 60 chars
moreLink.hrefstringyesTarget URL.uri-reference
articlesobject[]yesArticles, any order.≤ 2000 items
articles[].titlestringyesArticle title.≤ 200 chars
articles[].hrefstringyesArticle URL.uri-reference
articles[].datestringyesPublication date.date
articles[].teaserstringShort teaser.≤ 600 chars
articles[].kickerstringTeam or category shown with the date.≤ 60 chars
articles[].thumbstringSmall image (≈640 px) for cards and rows.pattern ^/media/.+\.(jpe?g|png|webp)$
articles[].imageobjectFull-size image (used for the large card).
articles[].image.srcstringyesPath under content/media.pattern ^/media/
articles[].image.altstringyesAlternative text.≤ 200 chars

Example rendered from example.json ↓

Block · news-teaser

News teaser

The latest articles as cards (newest first) on a light section. Each whole card links to the article.

blocks/news-teaser/block.htmlblocks/news-teaser/block.cssblocks/news-teaser/schema.jsonblocks/news-teaser/example.jsonblocks/news-teaser/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
titlestringyesSection title.≤ 40 chars
moreLinkobjectLink to the news archive.
moreLink.labelstringyesLink text.≤ 30 chars
moreLink.hrefstringyesArchive URL.uri-reference
articlesobject[]yesArticles to show.≥ 1 items · ≤ 6 items
articles[].datestringyesPublication date, YYYY-MM-DD.date
articles[].titlestringyesArticle title.≤ 200 chars
articles[].teaserstringyesOne or two sentences.≤ 320 chars
articles[].hrefstringyesArticle URL.uri-reference
articles[].imageobjectOptional 3:2 photo.
articles[].image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
articles[].image.altstringyesWhat the photo shows.≤ 160 chars

Example rendered from example.json ↓

News

Alle News

Block · page-hero

Page header

Header for content pages: breadcrumb, eyebrow, title (h1), intro and an optional photo with the yellow pass line. Without a photo the yellow line stands alone.

blocks/page-hero/block.htmlblocks/page-hero/block.cssblocks/page-hero/schema.jsonblocks/page-hero/example.jsonblocks/page-hero/block.mjs

Data fields (9)
FieldTypeRequiredDescriptionRules
breadcrumbobject[]Parent pages, top-down.≤ 4 items
breadcrumb[].labelstringyesLink text.≤ 40 chars
breadcrumb[].hrefstringyesTarget.uri-reference
eyebrowstringSmall line above the title.≤ 60 chars
titlestringyesPage title (h1).≤ 120 chars
introstringIntroduction.≤ 400 chars
imageobjectPhoto (3:2).
image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
image.altstringyesWhat the photo shows.≤ 160 chars

Example rendered from example.json ↓

Service

Sporthallen

Hier spielen und trainieren die Bern Capitals.

Spieler am Ball

Block · pass-leaders

Pass leaders («Die Passgeber»)

Our players ranked by assists (or points): the people behind the goals. Usually {"$data": "swissunihockey/teams/<id>.json#/scorers"} for «players» (computed by the sync from the game summaries).

blocks/pass-leaders/block.htmlblocks/pass-leaders/block.cssblocks/pass-leaders/schema.jsonblocks/pass-leaders/example.jsonblocks/pass-leaders/block.mjs

Data fields (11)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title.≤ 50 chars
markerstringHand-written line.≤ 40 chars
introstringShort explanation.≤ 300 chars
sortBystringRank by assists (default) or points.one of "assists", "points" · default "assists"
limitintegerHow many players to show.1–30 · default 5
playersobject[]yesPlayers with their season totals, any order.≤ 80 items
players[].namestringyesPlayer name as listed by Swiss Unihockey (e.g. «O. Asklöf»).≤ 60 chars
players[].goalsintegeryesGoals.0–…
players[].assistsintegeryesAssists.0–…
players[].pointsintegerGoals + assists.0–…

Example rendered from example.json ↓

Saison 2026/27

Die Passgeber

Kein Tor ohne Pass.

  1. 1 O. Asklöf 18 Assists 15 Tore · 18 Assists · 33 Punkte
  2. 2 O. Hammarqvist 15 Assists 12 Tore · 15 Assists · 27 Punkte
  3. 3 M. Misteli 10 Assists 17 Tore · 10 Assists · 27 Punkte

Block · pass-spotlight

Pass spotlight («Assist der Woche»)

Thanks one person whose contribution is usually invisible (assist, coach, volunteer, donor). Photo left, the yellow line leads to the text. Without a photo a placeholder is shown.

blocks/pass-spotlight/block.htmlblocks/pass-spotlight/block.cssblocks/pass-spotlight/schema.jsonblocks/pass-spotlight/example.json

Data fields (14)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above, e.g. «Assist der Woche».≤ 40 chars
headlinestringyesHeadline, e.g. «Ohne dich kein Heimspiel.»≤ 60 chars
markerstringHand-written thanks, e.g. «Danke, Anna!»≤ 40 chars
personobjectyesWho is thanked.
person.namestringyesFull name.≤ 50 chars
person.rolestringyesRole, e.g. «Kiosk-Team» or «Assist #16».≤ 50 chars
person.sincestringYear they joined (optional).pattern ^\d{4}$
imageobjectPortrait (4:5), ideally on the black backdrop.
image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
image.altstringyesWho is shown.≤ 160 chars
textstringA few sentences about the contribution.≤ 400 chars
linkobjectOptional button, e.g. to become a volunteer.
link.labelstringyesButton text.≤ 28 chars
link.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

Foto folgt

Assist der Woche

Ohne dich kein Heimspiel.

Danke, [Name]!

[Vorname Nachname] · Kiosk-Team · seit 2019

Beispieltext: Wer an jedem Heimspiel den Kiosk öffnet, macht den Abend für alle möglich. Diese Linie gehört dir.

Helfer:in werden

Block · people

People

The people behind the club, in groups (Vorstand, Sport, …). Every person is a card with initials or a photo, role, name and a contact link; all groups share one grid so the cards line up. A role without a person is shown as an open spot.

blocks/people/block.htmlblocks/people/block.cssblocks/people/schema.jsonblocks/people/example.jsonblocks/people/block.mjs

Data fields (22)
FieldTypeRequiredDescriptionRules
groupsobject[]yesGroups, top to bottom.≥ 1 items · ≤ 10 items
groups[].eyebrowstringSmall line above the group title, e.g. the Caps Spirit pillar.≤ 40 chars
groups[].titlestringyesGroup title (h2).≤ 60 chars
groups[].valuestringCaps Spirit value the group stands for, shown in the marker font, e.g. «Wir halten Balance.»≤ 60 chars
groups[].textstringOne or two sentences about the group.≤ 300 chars
groups[].peopleobject[]yesCards in this group.≥ 1 items · ≤ 24 items
groups[].people[].rolestringyesFunction, e.g. «Finanzen».≤ 60 chars
groups[].people[].namestringPerson's name. Leave out for an open spot.≤ 60 chars
groups[].people[].notestringShort extra line, e.g. «Sport Männer».≤ 80 chars
groups[].people[].photoobjectPortrait; without one the card shows the initials.
groups[].people[].photo.srcstringyesImage path under /media/.uri-reference
groups[].people[].photo.altstringAlt text; defaults to the name.≤ 120 chars
groups[].people[].contactobjectContact link (mailto:, tel: or a URL).
groups[].people[].contact.labelstringyesLink text, e.g. «E-Mail».≤ 40 chars
groups[].people[].contact.hrefstringyesTarget.uri-reference
groups[].people[].linksobject[]Further links, e.g. an organisation's website.≤ 3 items
groups[].people[].links[].labelstringyesLink text.≤ 40 chars
groups[].people[].links[].hrefstringyesTarget.uri-reference
groups[].people[].openobjectFor an open spot without a name: the call to join.
groups[].people[].open.textstringShort line, e.g. «Lust mitzuhelfen?»≤ 80 chars
groups[].people[].open.labelstringyesLink text.≤ 40 chars
groups[].people[].open.hrefstringyesTarget.uri-reference

Example rendered from example.json ↓

Club

Vorstand

Wir schaffen Community.

  • Co-Präsident Andi Britt Sport Männer E-Mail
  • Finanzen Claudia Michlig

Gesellschaft

Verantwortliche

Block · player-grid

Player grid

A team: optional team photo, then the portrait series (4:5, black backdrop). Number, name and position are optional per player.

blocks/player-grid/block.htmlblocks/player-grid/block.cssblocks/player-grid/schema.jsonblocks/player-grid/example.jsonblocks/player-grid/block.mjs

Data fields (14)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above, e.g. the season «Saison 2026/27».≤ 40 chars
titlestringyesTeam name.≤ 50 chars
introstringShort paragraph about the team.≤ 400 chars
teamPhotoobjectOptional team photo above the portraits.
teamPhoto.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
teamPhoto.altstringyesWhat the photo shows.≤ 160 chars
teamPhoto.captionstringCaption under the photo.≤ 160 chars
playersobject[]yesPlayers and staff, in display order.≥ 1 items · ≤ 40 items
players[].imageobjectyesPortrait on the black backdrop.
players[].image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
players[].image.altstringyesWho is shown.≤ 120 chars
players[].numberintegerShirt number, shown on a yellow tag.0–99
players[].namestringFull name.≤ 50 chars
players[].positionstringe.g. «Torhüter», «Verteidigung», «Sturm», «Headcoach».≤ 30 chars

Example rendered from example.json ↓

Saison 2026/27

Frauen 2. Liga

  • Spielerin Nummer 3 der Frauen 2. Liga

    [Name]#3 · [Position]

  • Spielerin Nummer 8 der Frauen 2. Liga

Block · prose

Prose

Long-form text written in a small Markdown subset: ## headings, paragraphs, **bold**, *italic*, [links](/path), lists, > quotes, --- dividers, images as ![alt](path "caption") with a path under /media and | tables |. Rendered without raw HTML; unsafe links are rejected at build time.

blocks/prose/block.htmlblocks/prose/block.cssblocks/prose/schema.jsonblocks/prose/example.jsonblocks/prose/block.mjs

Data fields (6)
FieldTypeRequiredDescriptionRules
levelinteger1 = the title is the page heading (h1).one of 1, 2 · default 2
tonestringBlack or light background.one of "ink", "paper" · default "ink"
tightbooleanLess vertical padding (e.g. directly under an article header).default false
eyebrowstringSmall line above the title.≤ 60 chars
titlestringOptional heading above the text.≤ 120 chars
markdownstringyesThe text in Markdown (see block description).≤ 120000 chars

Example rendered from example.json ↓

Geschäftsstelle

Trainings

Alle Trainings finden in der Sporthalle Moos statt, ausser es ist anders vermerkt.

Probetraining

Melde dich bei der Geschäftsstelle.

  • Junioren E: Mittwoch, 17:00
  • Junioren D: Donnerstag, 18:00
TeamTagZeit
U21Dienstag20:00
Kein Tor ohne Pass.

Block · read-next

Read next

End-of-page suggestions: two related pages (the neighbouring articles of the same team, or the other pages of the section) and one discovery from across the site. The browser remembers which pages a visitor has opened and prefers ones they have not seen yet. Placed once for all pages in content/site.json.

blocks/read-next/block.htmlblocks/read-next/block.cssblocks/read-next/schema.jsonblocks/read-next/example.jsonblocks/read-next/block.mjs

Data fields (36)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the heading.≤ 40 chars
titlestringyesHeading.≤ 60 chars
skipstring[]Paths of pages that show no suggestions (e.g. the home page).≤ 20 items
articlesobject[]yesAll news articles, normally {"$pages": {"dir": "news", "fields": ["tags", "kicker", "thumb"]}}. On an article page its neighbours in time (same team first) are suggested.≤ 2000 items
articles[].titlestringyesHeadline.
articles[].hrefstringyesArticle page.uri-reference
articles[].datestringPublication date.date
articles[].teaserstringShort summary (not shown).
articles[].imageobjectArticle photo, shown on the card.
articles[].image.srcstringyesImage path.
articles[].image.altstringAlternative text.
articles[].thumbstringSmall version of the article photo, used when there is no photo.
articles[].tagsstring[]Team tags.
articles[].kickerstringTeam name shown above the headline.
teamsobject[]Teams whose articles are tagged: where their news archive lives.≤ 40 items
teams[].tagstringyesArticle tag of the team.
teams[].labelstringyesTeam name, e.g. Herren 1. Liga.≤ 40 chars
teams[].archivestringyesPage listing all of the team's news.uri-reference
sectionsobject[]Parts of the site. A page belongs to the first section whose paths it starts with; it then suggests the section's other pages, starting after itself.≤ 20 items
sections[].labelstringyesSection name, shown above its cards.≤ 40 chars
sections[].hrefstringOverview page of the section, linked beside the heading.uri-reference
sections[].matchstring[]yesPath prefixes of the pages in this section.≥ 1 items · ≤ 10 items
sections[].linksobject[]yesPages to suggest, in reading order.≥ 2 items · ≤ 12 items
sections[].links[].labelstringyesPage name, shown as the card title.≤ 60 chars
sections[].links[].hrefstringyesTarget page.uri-reference
sections[].links[].textstringOne sentence that makes the page sound worth a visit.≤ 140 chars
fallbackobject[]Suggestions for pages outside every section.≤ 8 items
fallback[].labelstringyesPage name, shown as the card title.≤ 60 chars
fallback[].hrefstringyesTarget page.uri-reference
fallback[].textstringOne sentence that makes the page sound worth a visit.≤ 140 chars
discoverobjectyesPages worth discovering from anywhere; one is shown on every page.
discover.labelstringyesSmall line above the discovery card.≤ 40 chars
discover.linksobject[]yesPages to discover.≥ 2 items · ≤ 20 items
discover.links[].labelstringyesPage name, shown as the card title.≤ 60 chars
discover.links[].hrefstringyesTarget page.uri-reference
discover.links[].textstringOne sentence that makes the page sound worth a visit.≤ 140 chars

Example rendered from example.json ↓

Block · results

Results

Played games, newest first, with win/loss from our point of view. Uses the same game list as the agenda (games without a result are skipped), usually {"$data": "swissunihockey/teams/<id>.json#/games"}.

blocks/results/block.htmlblocks/results/block.cssblocks/results/schema.jsonblocks/results/example.jsonblocks/results/block.mjs

Data fields (20)
FieldTypeRequiredDescriptionRules
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title.≤ 40 chars
clubNamestringOur name in the match line; defaults to the site name.≤ 40 chars
limitintegerMaximum number of results shown.1–60 · default 5
moreLinkobjectOptional link to all results.
moreLink.labelstringyesLink text.≤ 30 chars
moreLink.hrefstringyesTarget URL.uri-reference
gamesobject[]yesGames, in any order.≤ 1000 items
games[].idintegerSwiss Unihockey game id (from sync).
games[].datestringyesGame day, YYYY-MM-DD.date
games[].timestringStart time, HH:MM (omit if not yet fixed).time
games[].opponentstringyesOpponent's club name.≤ 60 chars
games[].homebooleanyestrue for home games (we are named first).
games[].venuestringyesHall, e.g. «Sporthalle Moos».≤ 80 chars
games[].citystringTown of the hall, e.g. «Gümligen».≤ 40 chars
games[].teamstringWhich Caps team plays, e.g. «Herren 1. Liga».≤ 50 chars
games[].competitionstringLeague and group or cup (from sync).≤ 80 chars
games[].resultstringFinal score home:away; set for played games.pattern ^\d+:\d+$
games[].resultNotestringAfter overtime (n.V.) or penalty shootout (n.P.).one of "n.V.", "n.P."
games[].ticketUrlstringOptional ticket link.uri-reference

Example rendered from example.json ↓

Resultate

  1. So 15.11.

    Eagles UHC-Aigle – Bern Capitals

    7:6

    Niederlage n.V.

  2. Sa 14.11.

    Team Aarau – Bern Capitals

    8:11

    Sieg

Block · rich-text

Text section

Plain text section: title, optional marker line and lead, then paragraphs. No HTML; use level 1 for the page's main heading.

blocks/rich-text/block.htmlblocks/rich-text/block.cssblocks/rich-text/schema.jsonblocks/rich-text/example.jsonblocks/rich-text/block.mjs

Data fields (10)
FieldTypeRequiredDescriptionRules
levelinteger1 = page heading (h1, large), 2 = section heading.one of 1, 2 · default 2
tonestringBlack or light background.one of "ink", "paper" · default "ink"
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesHeading.≤ 80 chars
markerstringHand-written yellow line.≤ 50 chars
leadstringIntro paragraph in larger type.≤ 400 chars
paragraphsstring[]Body paragraphs, plain text.≤ 12 items
linkobjectOptional link at the end.
link.labelstringyesLink text.≤ 40 chars
link.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

Unser Partnerverein

Floorball Köniz

Gemeinsam fördern wir den Unihockeysport in der Region Bern.

floorball-koeniz.ch

Block · site-footer

Site footer

Logo, contact, links and social media. The copyright year comes from the build date.

blocks/site-footer/block.htmlblocks/site-footer/block.cssblocks/site-footer/schema.jsonblocks/site-footer/example.jsonblocks/site-footer/block.mjs

Data fields (17)
FieldTypeRequiredDescriptionRules
clubNamestringyesName next to the logo.≤ 50 chars
legalNamestringName in the copyright line; defaults to clubName.≤ 80 chars
taglinestringHand-written yellow line, e.g. «Feel the Caps Spirit».≤ 40 chars
logoobjectyesClub badge.
logo.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp|svg)$
logo.altstringyesAlternative text.≤ 80 chars
addressstring[]yesAddress lines.≥ 1 items · ≤ 5 items
emailstringContact e-mail.email
linksobject[]Footer links (Impressum, Datenschutz, …).≤ 8 items
links[].labelstringyesLink text.≤ 30 chars
links[].hrefstringyesTarget URL.uri-reference
socialobject[]Social media profiles.≤ 8 items
social[].labelstringyesLink text.≤ 30 chars
social[].hrefstringyesTarget URL.uri-reference
docsobjectSmall, unobtrusive icon link in the bottom row, e.g. to the design and editing guides.
docs.labelstringyesWhat the icon leads to; read by screen readers and shown on hover.≤ 60 chars
docs.hrefstringyesTarget page.uri-reference

Example rendered from example.json ↓

Block · site-header

Site header

Logo, club name, main navigation and one call to action. The entry matching the current page is marked automatically.

blocks/site-header/block.htmlblocks/site-header/block.cssblocks/site-header/schema.jsonblocks/site-header/example.jsonblocks/site-header/block.mjs

Data fields (13)
FieldTypeRequiredDescriptionRules
clubNamestringyesName next to the logo.≤ 40 chars
logoobjectyesClub badge (square, unchanged original).
logo.srcstringyesPath under content/media, e.g. /media/logo/logo-caps.png.pattern ^/media/.+\.(jpe?g|png|webp|svg)$
logo.altstringyesAlternative text for screen readers.≤ 140 chars
navobject[]yesMain navigation entries, in order.≥ 1 items · ≤ 8 items
nav[].labelstringyesVisible text.≤ 30 chars
nav[].hrefstringyesSite path (/club/) or full URL.uri-reference
ctaobjectOptional highlighted button at the right.
cta.labelstringyesVisible text.≤ 30 chars
cta.hrefstringyesSite path (/club/) or full URL.uri-reference
loginobjectOptional member login (person icon before the button). Rendered hidden: only the members Worker, where the login works, makes it visible.
login.labelstringyesVisible text.≤ 30 chars
login.hrefstringyesSite path (/club/) or full URL.uri-reference

Example rendered from example.json ↓

Block · spirit-pillars

Caps Spirit pillars

The club's values grouped into pillars (Sport, Club, Gesellschaft). «compact» shows value titles only; «full» adds each value's text.

blocks/spirit-pillars/block.htmlblocks/spirit-pillars/block.cssblocks/spirit-pillars/schema.jsonblocks/spirit-pillars/example.jsonblocks/spirit-pillars/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
variantstringcompact = titles only (home page); full = with text (Club page).one of "compact", "full" · default "compact"
eyebrowstringSmall line above the title.≤ 40 chars
titlestringyesSection title.≤ 60 chars
introstringIntroductory paragraph.≤ 400 chars
pillarsobject[]yesThe pillars, left to right.≥ 1 items · ≤ 4 items
pillars[].namestringyesPillar name, e.g. «Sport».≤ 30 chars
pillars[].valuesobject[]yesValues in this pillar.≥ 1 items · ≤ 5 items
pillars[].values[].titlestringyesValue as a sentence, e.g. «Wir verkörpern Sportsgeist.»≤ 60 chars
pillars[].values[].textstringExplanation (shown in the full variant).≤ 700 chars
linkobjectOptional link below the pillars.
link.labelstringyesLink text.≤ 40 chars
link.hrefstringyesTarget URL.uri-reference

Example rendered from example.json ↓

Feel the Caps Spirit

Wofür wir stehen

Sport

  • Wir streben nach Erfolg.

  • Wir verkörpern Sportsgeist.

  • Wir halten Balance.

Club

  • Wir schaffen Community.

  • Wir leben Spielfreude.

  • Wir fühlen Leidenschaft.

Gesellschaft

  • Wir sind offen und vielfältig.

  • Wir entwickeln Menschen.

  • Wir leben Engagement.

The Caps Spirit

Sponsoren & Partner

Block · team-grid

Team grid

All teams as cards (photo, name, league), grouped e.g. into Aktive, Junioren, Juniorinnen, Unihockeyschule.

blocks/team-grid/block.htmlblocks/team-grid/block.cssblocks/team-grid/schema.jsonblocks/team-grid/example.json

Data fields (11)
FieldTypeRequiredDescriptionRules
titlestringHeading.≤ 80 chars
introstringShort introduction.≤ 400 chars
groupsobject[]yesTeam groups.≥ 1 items · ≤ 10 items
groups[].namestringyesGroup name.≤ 60 chars
groups[].teamsobject[]yesTeams in this group.≥ 1 items · ≤ 40 items
groups[].teams[].namestringyesTeam name.≤ 60 chars
groups[].teams[].hrefstringyesTeam page.uri-reference
groups[].teams[].leaguestringLeague / group.≤ 80 chars
groups[].teams[].imageobjectTeam photo.
groups[].teams[].image.srcstringyesPath under content/media.pattern ^/media/.+\.(jpe?g|png|webp)$
groups[].teams[].image.altstringyesAlternative text.≤ 160 chars

Example rendered from example.json ↓

Block · token-swatches

Token swatches

Renders the design tokens (parsed from design-system/tokens.css by build.mjs) and the shared components. Used on /library/design-system/.

blocks/token-swatches/block.htmlblocks/token-swatches/block.cssblocks/token-swatches/schema.jsonblocks/token-swatches/example.json

Data fields (15)
FieldTypeRequiredDescriptionRules
colorsobject[]yes--color-* tokens.
colors[].namestringyesToken name without the leading --.pattern ^[a-z][a-z0-9-]*$
colors[].valuestringyesRaw value from tokens.css.
fontsobject[]yes--font-* tokens.
fonts[].namestringyesToken name without the leading --.pattern ^[a-z][a-z0-9-]*$
fonts[].valuestringyesRaw value from tokens.css.
textobject[]yes--text-* type scale.
text[].namestringyesToken name without the leading --.pattern ^[a-z][a-z0-9-]*$
text[].valuestringyesRaw value from tokens.css.
spaceobject[]yes--space-* scale.
space[].namestringyesToken name without the leading --.pattern ^[a-z][a-z0-9-]*$
space[].valuestringyesRaw value from tokens.css.
radiusobject[]yes--radius-* values.
radius[].namestringyesToken name without the leading --.pattern ^[a-z][a-z0-9-]*$
radius[].valuestringyesRaw value from tokens.css.

Example rendered from example.json ↓

Design system

Die gelbe Linie

Kein Tor ohne Pass.

Colours

  • --color-line#FFD200
  • --color-ink#111111

Fonts

  • Bern Capitals 26--font-display

Type scale

  • Feel the Caps Spirit--text-xl

Spacing & radius

  • --space-62rem
  • --radius-m12px

Components

.ds-btn .ds-btn--ghost .ds-link

.ds-eyebrow

.ds-marker

.ds-bar · So 06.12. · 18:00Sporthalle Moos

Block · training-schedule

Training schedule

Weekly training plan: a column per weekday with all sessions sorted by time (team, time, hall), plus the plan per team. Halls can link to the venues page.

blocks/training-schedule/block.htmlblocks/training-schedule/block.cssblocks/training-schedule/schema.jsonblocks/training-schedule/example.jsonblocks/training-schedule/block.mjs

Data fields (14)
FieldTypeRequiredDescriptionRules
titlestringHeading.≤ 80 chars
introstringIntroduction.≤ 400 chars
venueLinksobject[]Hall name keyword → link (e.g. «Moos» → /geschaeftsstelle/sporthallen/#moos).≤ 20 items
venueLinks[].matchstringyesText contained in the hall name.≤ 40 chars
venueLinks[].hrefstringyesLink target.uri-reference
teamsobject[]yesTeams and their sessions.≥ 1 items · ≤ 60 items
teams[].namestringyesTeam name.≤ 60 chars
teams[].hrefstringTeam page.uri-reference
teams[].sessionsobject[]yesWeekly sessions.≥ 1 items · ≤ 6 items
teams[].sessions[].daystringyesWeekday.one of "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"
teams[].sessions[].fromstringyesStart, HH:MM.time
teams[].sessions[].tostringyesEnd, HH:MM.time
teams[].sessions[].venuestringyesHall (and court).≤ 80 chars
teams[].sessions[].notestringe.g. «Skillstraining».≤ 40 chars

Example rendered from example.json ↓

Trainingsplan

Mo Montag 1

Do Donnerstag 1

Nach Team

  • Herren 1. Liga

    • Mo 20:30–22:30 · Sporthalle Moos
    • Do 19:30–21:00 · Sporthalle Moos

Block · venues

Venues

Halls as cards, grouped (e.g. Grossfeld / Kleinfeld): address, route and phone buttons, and — from the Swiss Unihockey data — the next home game in that hall. Each hall has an anchor (#id) so other pages can link to it.

blocks/venues/block.htmlblocks/venues/block.cssblocks/venues/schema.jsonblocks/venues/example.jsonblocks/venues/block.mjs

Data fields (12)
FieldTypeRequiredDescriptionRules
titlestringHeading.≤ 80 chars
groupsobject[]yesHall groups.≥ 1 items · ≤ 6 items
groups[].namestringyesGroup name.≤ 60 chars
groups[].venuesobject[]yesHalls.≥ 1 items · ≤ 20 items
groups[].venues[].idstringyesAnchor, e.g. «moos» for #moos.pattern ^[a-z][a-z0-9-]*$
groups[].venues[].namestringyesHall name.≤ 60 chars
groups[].venues[].addressstring[]yesAddress lines.≥ 1 items · ≤ 3 items
groups[].venues[].phonestringPhone number (for the call button).pattern ^\+?[0-9 ]{6,20}$
groups[].venues[].mapUrlstringRoute / map link.uri-reference
groups[].venues[].notestringShort note.≤ 160 chars
groups[].venues[].matchstringHall name as Swiss Unihockey writes it (to find the next home game), e.g. «Sporthalle Moos».≤ 60 chars
gamesobject[]Club games ({"$data": "swissunihockey/club.json#/games"}) for «next home game here».≤ 1000 items

Example rendered from example.json ↓

Hallen

Grossfeld

  • Sporthalle Moos

    Rohrmattstrasse 123073 Gümligen

    Nächstes Heimspiel hier · 1 Spiele geplantSo 22.11. · 16:00Herren 1. Liga: Caps – Lions Konolfingen

    Route Anrufen

Block · video

Video

An MP4 video with native controls.

blocks/video/block.htmlblocks/video/block.cssblocks/video/schema.jsonblocks/video/example.json

Data fields (4)
FieldTypeRequiredDescriptionRules
titlestringOptional heading.≤ 80 chars
srcstringyesMP4 under content/media.pattern ^/media/.+\.mp4$
posterstringStill image shown before playing.pattern ^/media/.+\.(jpe?g|png|webp)$
captionstringCaption.≤ 200 chars

Example rendered from example.json ↓

Beispielvideo

20 Jahre Bern Capitals