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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
anchor | string | id for in-page links, e.g. «agenda» for #agenda. | pattern ^[a-z][a-z0-9-]*$ | |
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title. | ≤ 40 chars |
clubName | string | Our name in the match line; defaults to the site name. | ≤ 40 chars | |
limit | integer | Maximum number of games shown. | 1–60 · default 10 | |
showPast | boolean | Also show games before the build date. | default false | |
emptyText | string | Shown when no upcoming games remain. | ≤ 120 chars | |
moreLink | object | Optional link to the full schedule. | ||
moreLink.label | string | yes | Link text. | ≤ 30 chars |
moreLink.href | string | yes | Target URL. | uri-reference |
games | object[] | yes | Games, in any order. | ≤ 1000 items |
games[].id | integer | Swiss Unihockey game id (from sync). | ||
games[].date | string | yes | Game day, YYYY-MM-DD. | date |
games[].time | string | Start time, HH:MM (omit if not yet fixed). | time | |
games[].opponent | string | yes | Opponent's club name. | ≤ 60 chars |
games[].home | boolean | yes | true for home games (we are named first). | |
games[].venue | string | yes | Hall, e.g. «Sporthalle Moos». | ≤ 80 chars |
games[].city | string | Town of the hall, e.g. «Gümligen». | ≤ 40 chars | |
games[].team | string | Which Caps team plays, e.g. «Herren 1. Liga». | ≤ 50 chars | |
games[].competition | string | League and group or cup (from sync). | ≤ 80 chars | |
games[].result | string | Final score home:away; set for played games. | pattern ^\d+:\d+$ | |
games[].resultNote | string | After overtime (n.V.) or penalty shootout (n.P.). | one of "n.V.", "n.P." | |
games[].ticketUrl | string | Optional ticket link. | uri-reference |
Example rendered from example.json ↓
Heimspiele
Agenda
-
So 22.11. 16:00
Nächstes Spiel · Heimspiel
Bern Capitals – Lions Konolfingen
Sonntag, 22. November 2026, 16:00 Uhr · Sporthalle Moos
-
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | yes | Article title (h1). | ≤ 200 chars |
date | string | yes | Publication date. | date |
kicker | string | Team or category, e.g. «Herren 1. Liga». | ≤ 60 chars | |
lead | string | Lead paragraph. | ≤ 600 chars | |
image | object | Main photo. | ||
image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp|gif)$ |
image.alt | string | yes | What the photo shows. | ≤ 200 chars |
image.caption | string | Caption / photo credit. | ≤ 200 chars | |
backLink | object | Link back to the archive. | ||
backLink.label | string | yes | Link text. | ≤ 40 chars |
backLink.href | string | yes | Target URL. | uri-reference |
Example rendered from example.json ↓
· 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | What the sample shows, e.g. a file path. | ≤ 80 chars | |
caption | string | One or two sentences explaining the sample. | ≤ 400 chars | |
language | string | Kind of code, shown as a label. | one of "json", "bash", "css", "html", "markdown", "text" | |
code | string | yes | The code, exactly as it should appear (line breaks kept). | ≤ 6000 chars |
Example rendered from example.json ↓
{
"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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
tone | string | line = yellow band, ink = black band. | one of "line", "ink" · default "line" | |
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | The message. | ≤ 70 chars |
text | string | One supporting sentence. | ≤ 240 chars | |
link | object | yes | The button. | |
link.label | string | yes | Button text. | ≤ 28 chars |
link.href | string | yes | Target 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.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Heading. | ≤ 80 chars | |
intro | string | Short introduction. | ≤ 400 chars | |
layout | string | list = cards, covers = cover images. | one of "list", "covers" · default "list" | |
groups | object[] | yes | Groups of files. | ≥ 1 items · ≤ 20 items |
groups[].name | string | Group heading (optional). | ≤ 80 chars | |
groups[].files | object[] | yes | Files in this group. | ≥ 1 items · ≤ 60 items |
groups[].files[].label | string | yes | Visible name. | ≤ 120 chars |
groups[].files[].href | string | yes | File under /media/… or an external URL. | uri-reference |
groups[].files[].size | string | Display size, e.g. «0.2 MB». | ≤ 20 chars | |
groups[].files[].cover | object | Cover image (covers layout). | ||
groups[].files[].cover.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
groups[].files[].cover.alt | string | yes | Alternative text. | ≤ 120 chars |
Example rendered from example.json ↓
Downloads
Beispiel
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Optional heading. | ≤ 80 chars | |
src | string | yes | Embed URL (allow-listed hosts only). | pattern ^https://www\.helfereinsatz\.ch/[\w/.?=&-]*$ |
frameTitle | string | yes | Accessible name of the embedded content. | ≤ 80 chars |
height | integer | Height 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Optional heading. | ≤ 80 chars | |
images | object[] | yes | Photos in order. | ≥ 1 items · ≤ 120 items |
images[].src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp|gif)$ |
images[].alt | string | yes | What the photo shows. | ≤ 200 chars |
images[].caption | string | Caption. | ≤ 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title, e.g. «Letztes Spiel». | ≤ 50 chars |
marker | string | Hand-written line, e.g. «Kein Tor ohne Pass.» | ≤ 40 chars | |
link | object | Optional link, e.g. to the match report. | ||
link.label | string | yes | Link text. | ≤ 40 chars |
link.href | string | yes | Target URL. | uri-reference |
game | object | yes | The game. | |
game.id | integer | Swiss Unihockey game id. | ||
game.date | string | Game day. | date | |
game.time | string | Start time. | time | |
game.competition | string | League/group or cup. | ≤ 120 chars | |
game.home | string | yes | Home team. | ≤ 60 chars |
game.away | string | yes | Away team. | ≤ 60 chars |
game.result | string | yes | Final score home:away. | pattern ^\d+:\d+$ |
game.resultNote | string | After overtime or penalty shootout. | one of "n.V.", "n.P." | |
game.periods | string[] | Score per period (and overtime). | ≤ 5 items | |
game.venue | string | Hall and town. | ≤ 100 chars | |
game.spectators | integer | Number of spectators. | 0–… | |
game.goals | object[] | yes | Goals in order. | ≤ 40 items |
game.goals[].minute | integer | yes | Game minute. | 0–99 |
game.goals[].scorer | string | yes | Who scored. | ≤ 60 chars |
game.goals[].assist | string | Who passed (the assist). | ≤ 60 chars | |
game.goals[].score | string | yes | Score after the goal, home:away. | pattern ^\d+:\d+$ |
game.goals[].side | string | Which side scored. | one of "home", "away" | |
game.goals[].ours | boolean | true 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
2 von 2 Toren mit Assist
- 53' N. Kestenholz (M. Müller) 4:5
- 60' J. Bolliger O. Asklöf 5:5
- 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the headline. | ≤ 40 chars | |
headline | string | yes | Main headline (uppercase display type). | ≤ 60 chars |
marker | string | Hand-written yellow line under the headline. | ≤ 40 chars | |
text | string | Lead paragraph. | ≤ 280 chars | |
ctas | object[] | Up to two buttons; the first is solid yellow, the second outlined. | ≤ 2 items | |
ctas[].label | string | yes | Button text. | ≤ 28 chars |
ctas[].href | string | yes | Target: site path, #anchor or full URL. | uri-reference |
image | object | yes | Action photo, cropped to 3:2. | |
image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
image.alt | string | yes | What the photo shows. | ≤ 160 chars |
image.credit | string | Photographer, shown small in the corner. | ≤ 60 chars | |
pass | object | yes | The yellow line: from the passer to the receiver/scorer. | |
pass.from | object | yes | Start (the person who made it possible). | |
pass.from.x | number | yes | Percent from the left edge of the photo. | 0–100 |
pass.from.y | number | yes | Percent from the top edge of the photo. | 0–100 |
pass.to | object | yes | End (receiver or goal). | |
pass.to.x | number | yes | Percent from the left edge of the photo. | 0–100 |
pass.to.y | number | yes | Percent from the top edge of the photo. | 0–100 |
pass.bend | number | Curve strength; negative bends the other way. | -0.6–0.6 · default 0.25 | |
pass.label | string | Hand-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.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 60 chars | |
title | string | Heading. | ≤ 80 chars | |
intro | string | Introduction. | ≤ 400 chars | |
note | string | Small print below the cards. | ≤ 300 chars | |
cards | object[] | yes | Cards, left to right. | ≥ 1 items · ≤ 8 items |
cards[].title | string | yes | Card title. | ≤ 80 chars |
cards[].value | string | Big value, e.g. a price. | ≤ 30 chars | |
cards[].highlight | boolean | Yellow card. | ||
cards[].lines | string[] | Text lines. | ≤ 8 items | |
cards[].link | object | Optional link (also tel:/mailto:). | ||
cards[].link.label | string | yes | Link text. | ≤ 60 chars |
cards[].link.href | string | yes | Target. | 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title. | ≤ 40 chars |
table | object | yes | The standings. | |
table.title | string | yes | League and group, e.g. «Tabelle Herren GF 1. Liga Gruppe 1 2026/27». | ≤ 120 chars |
table.asOf | string | Date the table refers to. | date | |
table.rows | object[] | yes | One row per team, in rank order. | ≥ 1 items · ≤ 20 items |
table.rows[].rank | integer | yes | Position. | 1–… |
table.rows[].team | string | yes | Team name. | ≤ 60 chars |
table.rows[].teamId | integer | Swiss Unihockey team id. | ||
table.rows[].games | integer | yes | Games played (Sp). | 0–… |
table.rows[].wins | integer | Wins in regular time (S). | 0–… | |
table.rows[].otWins | integer | Wins after overtime/shootout (SnV). | 0–… | |
table.rows[].otLosses | integer | Losses after overtime/shootout (NnV). | 0–… | |
table.rows[].losses | integer | Losses in regular time (N). | 0–… | |
table.rows[].goals | string | Goals for:against. | pattern ^\d+:\d+$ | |
table.rows[].diff | string | Goal difference. | pattern ^[+-]?\d+$ | |
table.rows[].points | integer | yes | Points (P). | 0–… |
table.rows[].isUs | boolean | Highlights our row. | ||
link | object | Optional link below the table. | ||
link.label | string | yes | Link text. | ≤ 40 chars |
link.href | string | yes | Target URL. | uri-reference |
Example rendered from example.json ↓
Tabelle
| Rg. | Team | Sp | S | SnV | NnV | N | Tore | TD | P |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Unihockey Emme | 12 | 10 | 1 | 0 | 1 | 79:50 | +29 | 32 |
| 2 | Bern Capitals | 13 | 7 | 2 | 1 | 3 | 88:66 | +22 | 26 |
| 3 | Züri Süd | 12 | 6 | 1 | 3 | 2 | 65:60 | +5 | 23 |
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
name | string | yes | Block folder name; also the anchor. | pattern ^[a-z][a-z0-9-]*$ |
title | string | yes | Schema title. | |
description | string | yes | Schema description. | |
files | string[] | yes | The block's files. | |
fields | object[] | yes | Flattened schema fields. | |
fields[].path | string | yes | Dotted field path; [] marks list items. | |
fields[].type | string | yes | JSON type. | |
fields[].required | boolean | yes | Whether the field is required. | |
fields[].description | string | yes | Field description. | |
fields[].rules | string | yes | Constraints 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | yes | Section 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Heading. | ≤ 80 chars | |
links | object[] | yes | Linked pages. | ≥ 1 items · ≤ 12 items |
links[].label | string | yes | Page name. | ≤ 60 chars |
links[].href | string | yes | Target. | uri-reference |
links[].text | string | One-line description. | ≤ 160 chars |
Example rendered from example.json ↓
Mehr zur Geschäftsstelle
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 60 chars | |
title | string | Section title. | ≤ 60 chars | |
marker | string | Hand-written line, e.g. «Kein Tor ohne Pass.» | ≤ 40 chars | |
clubShort | string | Short club name on the cards. | ≤ 20 chars · default "Caps" | |
logo | string | Club badge shown on the cards. | pattern ^/media/.+\.(png|svg|jpe?g|webp)$ | |
cards | object[] | yes | Cards, left to right. Cards without data (e.g. no upcoming home game) are left out. | ≥ 1 items · ≤ 4 items |
cards[].type | string | yes | Card type. | one of "matchday", "goal" |
cards[].team | string | yes | Team label, e.g. «Herren 1. Liga». | ≤ 40 chars |
cards[].games | object[] | matchday: the team's games (the next home game is used). | ≤ 1000 items | |
cards[].games[].date | string | yes | Game day. | date |
cards[].games[].time | string | Start time. | time | |
cards[].games[].opponent | string | yes | Opponent. | |
cards[].games[].home | boolean | yes | Home game. | |
cards[].games[].venue | string | yes | Hall. | |
cards[].games[].city | string | Town. | ||
cards[].games[].result | string | Result, if played. | ||
cards[].photos | object[] | matchday: two portraits (4:5, black backdrop). | ≥ 2 items · ≤ 2 items | |
cards[].photos[].src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
cards[].photos[].alt | string | yes | Alternative text. | ≤ 160 chars |
cards[].game | object | null | goal: the match report (usually …#/lastGame). | ||
cards[].players | object[] | goal: player list name → photo (content/data/players/<team>.json#/players). | ≤ 80 items | |
cards[].players[].name | string | yes | Name as in the match reports, e.g. «O. Asklöf». | ≤ 60 chars |
cards[].players[].number | integer | Shirt number. | 0–99 | |
cards[].players[].photo | string | Portrait. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
Example rendered from example.json ↓
Die gelbe Linie
Matchday
Kein Tor ohne Pass.
-
Heimspiel · Herren 1. Liga
Caps – Black Creek Schwarzenbach
-
OA
Tor!
65. Minute · O. Asklöf
OHAssist O. Hammarqvist
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the heading. | ≤ 40 chars | |
title | string | yes | Page heading. | ≤ 60 chars |
intro | string | Text above the login form. | ≤ 300 chars | |
contact | object | yes | Where members send corrections to their data («Änderung melden»). | |
contact.email | string | yes | Address of the Geschäftsstelle. | |
contact.label | string | Link text, default «Änderung melden». | ≤ 40 chars | |
unavailable | object | yes | Shown where the members API is not reachable. | |
unavailable.text | string | yes | Explanation. | ≤ 200 chars |
unavailable.link | object | Where the member area works. | ||
unavailable.link.label | string | yes | Link text. | ≤ 60 chars |
unavailable.link.href | string | yes | Target. | uri-reference |
demo | boolean | Show made-up example data instead of calling the API (for the block library). |
Example rendered from example.json ↓
Bern Capitals
Mitgliederbereich
Einen Moment …
Der Mitgliederbereich ist in dieser Vorschau noch nicht verfügbar.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
level | integer | 1 = the title is the page heading (h1). | one of 1, 2 · default 2 | |
eyebrow | string | Small line above the title. | ≤ 60 chars | |
title | string | yes | Heading. | ≤ 80 chars |
intro | string | Short introduction. | ≤ 400 chars | |
featured | integer | How many of the newest articles are shown as photo cards (the first one large). | 0–9 · default 5 | |
limit | integer | Show only the newest N articles. | 1–2000 | |
filters | object[] | Filter chips (links to team news pages); the current one is highlighted. | ≤ 12 items | |
filters[].label | string | yes | Chip text. | ≤ 40 chars |
filters[].href | string | yes | Target page. | uri-reference |
filters[].current | boolean | Marks the chip of this page. | ||
moreLink | object | Optional link below the list (e.g. to the full team news page). | ||
moreLink.label | string | yes | Link text. | ≤ 60 chars |
moreLink.href | string | yes | Target URL. | uri-reference |
articles | object[] | yes | Articles, any order. | ≤ 2000 items |
articles[].title | string | yes | Article title. | ≤ 200 chars |
articles[].href | string | yes | Article URL. | uri-reference |
articles[].date | string | yes | Publication date. | date |
articles[].teaser | string | Short teaser. | ≤ 600 chars | |
articles[].kicker | string | Team or category shown with the date. | ≤ 60 chars | |
articles[].thumb | string | Small image (≈640 px) for cards and rows. | pattern ^/media/.+\.(jpe?g|png|webp)$ | |
articles[].image | object | Full-size image (used for the large card). | ||
articles[].image.src | string | yes | Path under content/media. | pattern ^/media/ |
articles[].image.alt | string | yes | Alternative text. | ≤ 200 chars |
Example rendered from example.json ↓
News
2025 1 Beiträge
2024 1 Beiträge
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
breadcrumb | object[] | Parent pages, top-down. | ≤ 4 items | |
breadcrumb[].label | string | yes | Link text. | ≤ 40 chars |
breadcrumb[].href | string | yes | Target. | uri-reference |
eyebrow | string | Small line above the title. | ≤ 60 chars | |
title | string | yes | Page title (h1). | ≤ 120 chars |
intro | string | Introduction. | ≤ 400 chars | |
image | object | Photo (3:2). | ||
image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
image.alt | string | yes | What the photo shows. | ≤ 160 chars |
Example rendered from example.json ↓
Service
Sporthallen
Hier spielen und trainieren die Bern Capitals.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title. | ≤ 50 chars |
marker | string | Hand-written line. | ≤ 40 chars | |
intro | string | Short explanation. | ≤ 300 chars | |
sortBy | string | Rank by assists (default) or points. | one of "assists", "points" · default "assists" | |
limit | integer | How many players to show. | 1–30 · default 5 | |
players | object[] | yes | Players with their season totals, any order. | ≤ 80 items |
players[].name | string | yes | Player name as listed by Swiss Unihockey (e.g. «O. Asklöf»). | ≤ 60 chars |
players[].goals | integer | yes | Goals. | 0–… |
players[].assists | integer | yes | Assists. | 0–… |
players[].points | integer | Goals + assists. | 0–… |
Example rendered from example.json ↓
Saison 2026/27
Die Passgeber
Kein Tor ohne Pass.
- 1 O. Asklöf 18 Assists 15 Tore · 18 Assists · 33 Punkte
- 2 O. Hammarqvist 15 Assists 12 Tore · 15 Assists · 27 Punkte
- 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above, e.g. «Assist der Woche». | ≤ 40 chars | |
headline | string | yes | Headline, e.g. «Ohne dich kein Heimspiel.» | ≤ 60 chars |
marker | string | Hand-written thanks, e.g. «Danke, Anna!» | ≤ 40 chars | |
person | object | yes | Who is thanked. | |
person.name | string | yes | Full name. | ≤ 50 chars |
person.role | string | yes | Role, e.g. «Kiosk-Team» or «Assist #16». | ≤ 50 chars |
person.since | string | Year they joined (optional). | pattern ^\d{4}$ | |
image | object | Portrait (4:5), ideally on the black backdrop. | ||
image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
image.alt | string | yes | Who is shown. | ≤ 160 chars |
text | string | A few sentences about the contribution. | ≤ 400 chars | |
link | object | Optional button, e.g. to become a volunteer. | ||
link.label | string | yes | Button text. | ≤ 28 chars |
link.href | string | yes | Target URL. | uri-reference |
Example rendered from example.json ↓
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.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
groups | object[] | yes | Groups, top to bottom. | ≥ 1 items · ≤ 10 items |
groups[].eyebrow | string | Small line above the group title, e.g. the Caps Spirit pillar. | ≤ 40 chars | |
groups[].title | string | yes | Group title (h2). | ≤ 60 chars |
groups[].value | string | Caps Spirit value the group stands for, shown in the marker font, e.g. «Wir halten Balance.» | ≤ 60 chars | |
groups[].text | string | One or two sentences about the group. | ≤ 300 chars | |
groups[].people | object[] | yes | Cards in this group. | ≥ 1 items · ≤ 24 items |
groups[].people[].role | string | yes | Function, e.g. «Finanzen». | ≤ 60 chars |
groups[].people[].name | string | Person's name. Leave out for an open spot. | ≤ 60 chars | |
groups[].people[].note | string | Short extra line, e.g. «Sport Männer». | ≤ 80 chars | |
groups[].people[].photo | object | Portrait; without one the card shows the initials. | ||
groups[].people[].photo.src | string | yes | Image path under /media/. | uri-reference |
groups[].people[].photo.alt | string | Alt text; defaults to the name. | ≤ 120 chars | |
groups[].people[].contact | object | Contact link (mailto:, tel: or a URL). | ||
groups[].people[].contact.label | string | yes | Link text, e.g. «E-Mail». | ≤ 40 chars |
groups[].people[].contact.href | string | yes | Target. | uri-reference |
groups[].people[].links | object[] | Further links, e.g. an organisation's website. | ≤ 3 items | |
groups[].people[].links[].label | string | yes | Link text. | ≤ 40 chars |
groups[].people[].links[].href | string | yes | Target. | uri-reference |
groups[].people[].open | object | For an open spot without a name: the call to join. | ||
groups[].people[].open.text | string | Short line, e.g. «Lust mitzuhelfen?» | ≤ 80 chars | |
groups[].people[].open.label | string | yes | Link text. | ≤ 40 chars |
groups[].people[].open.href | string | yes | Target. | 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
- Kinderschutz Yann Brügger E-Mail kinderschutz.ch
- Gastronomie Vakant Lust mitzuhelfen? Melde dich
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above, e.g. the season «Saison 2026/27». | ≤ 40 chars | |
title | string | yes | Team name. | ≤ 50 chars |
intro | string | Short paragraph about the team. | ≤ 400 chars | |
teamPhoto | object | Optional team photo above the portraits. | ||
teamPhoto.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
teamPhoto.alt | string | yes | What the photo shows. | ≤ 160 chars |
teamPhoto.caption | string | Caption under the photo. | ≤ 160 chars | |
players | object[] | yes | Players and staff, in display order. | ≥ 1 items · ≤ 40 items |
players[].image | object | yes | Portrait on the black backdrop. | |
players[].image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
players[].image.alt | string | yes | Who is shown. | ≤ 120 chars |
players[].number | integer | Shirt number, shown on a yellow tag. | 0–99 | |
players[].name | string | Full name. | ≤ 50 chars | |
players[].position | string | e.g. «Torhüter», «Verteidigung», «Sturm», «Headcoach». | ≤ 30 chars |
Example rendered from example.json ↓
Saison 2026/27
Frauen 2. Liga
-
[Name]#3 · [Position]
-
Block · prose
Prose
Long-form text written in a small Markdown subset: ## headings, paragraphs, **bold**, *italic*, [links](/path), lists, > quotes, --- dividers, images as  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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
level | integer | 1 = the title is the page heading (h1). | one of 1, 2 · default 2 | |
tone | string | Black or light background. | one of "ink", "paper" · default "ink" | |
tight | boolean | Less vertical padding (e.g. directly under an article header). | default false | |
eyebrow | string | Small line above the title. | ≤ 60 chars | |
title | string | Optional heading above the text. | ≤ 120 chars | |
markdown | string | yes | The 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
| Team | Tag | Zeit |
|---|---|---|
| U21 | Dienstag | 20: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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the heading. | ≤ 40 chars | |
title | string | yes | Heading. | ≤ 60 chars |
skip | string[] | Paths of pages that show no suggestions (e.g. the home page). | ≤ 20 items | |
articles | object[] | yes | All 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[].title | string | yes | Headline. | |
articles[].href | string | yes | Article page. | uri-reference |
articles[].date | string | Publication date. | date | |
articles[].teaser | string | Short summary (not shown). | ||
articles[].image | object | Article photo, shown on the card. | ||
articles[].image.src | string | yes | Image path. | |
articles[].image.alt | string | Alternative text. | ||
articles[].thumb | string | Small version of the article photo, used when there is no photo. | ||
articles[].tags | string[] | Team tags. | ||
articles[].kicker | string | Team name shown above the headline. | ||
teams | object[] | Teams whose articles are tagged: where their news archive lives. | ≤ 40 items | |
teams[].tag | string | yes | Article tag of the team. | |
teams[].label | string | yes | Team name, e.g. Herren 1. Liga. | ≤ 40 chars |
teams[].archive | string | yes | Page listing all of the team's news. | uri-reference |
sections | object[] | 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[].label | string | yes | Section name, shown above its cards. | ≤ 40 chars |
sections[].href | string | Overview page of the section, linked beside the heading. | uri-reference | |
sections[].match | string[] | yes | Path prefixes of the pages in this section. | ≥ 1 items · ≤ 10 items |
sections[].links | object[] | yes | Pages to suggest, in reading order. | ≥ 2 items · ≤ 12 items |
sections[].links[].label | string | yes | Page name, shown as the card title. | ≤ 60 chars |
sections[].links[].href | string | yes | Target page. | uri-reference |
sections[].links[].text | string | One sentence that makes the page sound worth a visit. | ≤ 140 chars | |
fallback | object[] | Suggestions for pages outside every section. | ≤ 8 items | |
fallback[].label | string | yes | Page name, shown as the card title. | ≤ 60 chars |
fallback[].href | string | yes | Target page. | uri-reference |
fallback[].text | string | One sentence that makes the page sound worth a visit. | ≤ 140 chars | |
discover | object | yes | Pages worth discovering from anywhere; one is shown on every page. | |
discover.label | string | yes | Small line above the discovery card. | ≤ 40 chars |
discover.links | object[] | yes | Pages to discover. | ≥ 2 items · ≤ 20 items |
discover.links[].label | string | yes | Page name, shown as the card title. | ≤ 60 chars |
discover.links[].href | string | yes | Target page. | uri-reference |
discover.links[].text | string | One 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title. | ≤ 40 chars |
clubName | string | Our name in the match line; defaults to the site name. | ≤ 40 chars | |
limit | integer | Maximum number of results shown. | 1–60 · default 5 | |
moreLink | object | Optional link to all results. | ||
moreLink.label | string | yes | Link text. | ≤ 30 chars |
moreLink.href | string | yes | Target URL. | uri-reference |
games | object[] | yes | Games, in any order. | ≤ 1000 items |
games[].id | integer | Swiss Unihockey game id (from sync). | ||
games[].date | string | yes | Game day, YYYY-MM-DD. | date |
games[].time | string | Start time, HH:MM (omit if not yet fixed). | time | |
games[].opponent | string | yes | Opponent's club name. | ≤ 60 chars |
games[].home | boolean | yes | true for home games (we are named first). | |
games[].venue | string | yes | Hall, e.g. «Sporthalle Moos». | ≤ 80 chars |
games[].city | string | Town of the hall, e.g. «Gümligen». | ≤ 40 chars | |
games[].team | string | Which Caps team plays, e.g. «Herren 1. Liga». | ≤ 50 chars | |
games[].competition | string | League and group or cup (from sync). | ≤ 80 chars | |
games[].result | string | Final score home:away; set for played games. | pattern ^\d+:\d+$ | |
games[].resultNote | string | After overtime (n.V.) or penalty shootout (n.P.). | one of "n.V.", "n.P." | |
games[].ticketUrl | string | Optional ticket link. | uri-reference |
Example rendered from example.json ↓
Resultate
-
So 15.11.
Eagles UHC-Aigle – Bern Capitals
7:6
Niederlage n.V.
-
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
level | integer | 1 = page heading (h1, large), 2 = section heading. | one of 1, 2 · default 2 | |
tone | string | Black or light background. | one of "ink", "paper" · default "ink" | |
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Heading. | ≤ 80 chars |
marker | string | Hand-written yellow line. | ≤ 50 chars | |
lead | string | Intro paragraph in larger type. | ≤ 400 chars | |
paragraphs | string[] | Body paragraphs, plain text. | ≤ 12 items | |
link | object | Optional link at the end. | ||
link.label | string | yes | Link text. | ≤ 40 chars |
link.href | string | yes | Target URL. | uri-reference |
Example rendered from example.json ↓
Unser Partnerverein
Floorball Köniz
Gemeinsam fördern wir den Unihockeysport in der Region Bern.
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
clubName | string | yes | Name next to the logo. | ≤ 40 chars |
logo | object | yes | Club badge (square, unchanged original). | |
logo.src | string | yes | Path under content/media, e.g. /media/logo/logo-caps.png. | pattern ^/media/.+\.(jpe?g|png|webp|svg)$ |
logo.alt | string | yes | Alternative text for screen readers. | ≤ 140 chars |
nav | object[] | yes | Main navigation entries, in order. | ≥ 1 items · ≤ 8 items |
nav[].label | string | yes | Visible text. | ≤ 30 chars |
nav[].href | string | yes | Site path (/club/) or full URL. | uri-reference |
cta | object | Optional highlighted button at the right. | ||
cta.label | string | yes | Visible text. | ≤ 30 chars |
cta.href | string | yes | Site path (/club/) or full URL. | uri-reference |
login | object | Optional member login (person icon before the button). Rendered hidden: only the members Worker, where the login works, makes it visible. | ||
login.label | string | yes | Visible text. | ≤ 30 chars |
login.href | string | yes | Site 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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
variant | string | compact = titles only (home page); full = with text (Club page). | one of "compact", "full" · default "compact" | |
eyebrow | string | Small line above the title. | ≤ 40 chars | |
title | string | yes | Section title. | ≤ 60 chars |
intro | string | Introductory paragraph. | ≤ 400 chars | |
pillars | object[] | yes | The pillars, left to right. | ≥ 1 items · ≤ 4 items |
pillars[].name | string | yes | Pillar name, e.g. «Sport». | ≤ 30 chars |
pillars[].values | object[] | yes | Values in this pillar. | ≥ 1 items · ≤ 5 items |
pillars[].values[].title | string | yes | Value as a sentence, e.g. «Wir verkörpern Sportsgeist.» | ≤ 60 chars |
pillars[].values[].text | string | Explanation (shown in the full variant). | ≤ 700 chars | |
link | object | Optional link below the pillars. | ||
link.label | string | yes | Link text. | ≤ 40 chars |
link.href | string | yes | Target 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.
Block · sponsor-wall
Sponsor wall
Sponsor and partner logos on white tiles, optionally grouped (e.g. Gold, Silber, Partner). Logos are shown unchanged; without a logo the name is shown.
blocks/sponsor-wall/block.htmlblocks/sponsor-wall/block.cssblocks/sponsor-wall/schema.jsonblocks/sponsor-wall/example.jsonblocks/sponsor-wall/block.mjs
Data fields (10)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | yes | Section title. | ≤ 50 chars |
groups | object[] | yes | Sponsor groups in order of importance. | ≥ 1 items · ≤ 12 items |
groups[].name | string | Group name, e.g. «Goldsponsoren» (optional). | ≤ 40 chars | |
groups[].sponsors | object[] | yes | Sponsors in this group. | ≥ 1 items · ≤ 40 items |
groups[].sponsors[].name | string | yes | Company name (also the fallback text). | ≤ 60 chars |
groups[].sponsors[].href | string | Sponsor website (optional). | uri-reference | |
groups[].sponsors[].logo | object | Logo file, unchanged. | ||
groups[].sponsors[].logo.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp|svg)$ |
groups[].sponsors[].logo.alt | string | yes | Usually the company name. | ≤ 80 chars |
groups[].sponsors[].address | string | Address or short note (optional). | ≤ 200 chars |
Example rendered from example.json ↓
Sponsoren & Partner
Beispiel
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Heading. | ≤ 80 chars | |
intro | string | Short introduction. | ≤ 400 chars | |
groups | object[] | yes | Team groups. | ≥ 1 items · ≤ 10 items |
groups[].name | string | yes | Group name. | ≤ 60 chars |
groups[].teams | object[] | yes | Teams in this group. | ≥ 1 items · ≤ 40 items |
groups[].teams[].name | string | yes | Team name. | ≤ 60 chars |
groups[].teams[].href | string | yes | Team page. | uri-reference |
groups[].teams[].league | string | League / group. | ≤ 80 chars | |
groups[].teams[].image | object | Team photo. | ||
groups[].teams[].image.src | string | yes | Path under content/media. | pattern ^/media/.+\.(jpe?g|png|webp)$ |
groups[].teams[].image.alt | string | yes | Alternative text. | ≤ 160 chars |
Example rendered from example.json ↓
Teams
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
colors | object[] | yes | --color-* tokens. | |
colors[].name | string | yes | Token name without the leading --. | pattern ^[a-z][a-z0-9-]*$ |
colors[].value | string | yes | Raw value from tokens.css. | |
fonts | object[] | yes | --font-* tokens. | |
fonts[].name | string | yes | Token name without the leading --. | pattern ^[a-z][a-z0-9-]*$ |
fonts[].value | string | yes | Raw value from tokens.css. | |
text | object[] | yes | --text-* type scale. | |
text[].name | string | yes | Token name without the leading --. | pattern ^[a-z][a-z0-9-]*$ |
text[].value | string | yes | Raw value from tokens.css. | |
space | object[] | yes | --space-* scale. | |
space[].name | string | yes | Token name without the leading --. | pattern ^[a-z][a-z0-9-]*$ |
space[].value | string | yes | Raw value from tokens.css. | |
radius | object[] | yes | --radius-* values. | |
radius[].name | string | yes | Token name without the leading --. | pattern ^[a-z][a-z0-9-]*$ |
radius[].value | string | yes | Raw 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
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Heading. | ≤ 80 chars | |
intro | string | Introduction. | ≤ 400 chars | |
venueLinks | object[] | Hall name keyword → link (e.g. «Moos» → /geschaeftsstelle/sporthallen/#moos). | ≤ 20 items | |
venueLinks[].match | string | yes | Text contained in the hall name. | ≤ 40 chars |
venueLinks[].href | string | yes | Link target. | uri-reference |
teams | object[] | yes | Teams and their sessions. | ≥ 1 items · ≤ 60 items |
teams[].name | string | yes | Team name. | ≤ 60 chars |
teams[].href | string | Team page. | uri-reference | |
teams[].sessions | object[] | yes | Weekly sessions. | ≥ 1 items · ≤ 6 items |
teams[].sessions[].day | string | yes | Weekday. | one of "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag" |
teams[].sessions[].from | string | yes | Start, HH:MM. | time |
teams[].sessions[].to | string | yes | End, HH:MM. | time |
teams[].sessions[].venue | string | yes | Hall (and court). | ≤ 80 chars |
teams[].sessions[].note | string | e.g. «Skillstraining». | ≤ 40 chars |
Example rendered from example.json ↓
Trainingsplan
Mo Montag 1
- 20:30–22:30 Herren 1. Liga Sporthalle Moos
Do Donnerstag 1
- 19:30–21:00 Herren 1. Liga Sporthalle Moos
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Heading. | ≤ 80 chars | |
groups | object[] | yes | Hall groups. | ≥ 1 items · ≤ 6 items |
groups[].name | string | yes | Group name. | ≤ 60 chars |
groups[].venues | object[] | yes | Halls. | ≥ 1 items · ≤ 20 items |
groups[].venues[].id | string | yes | Anchor, e.g. «moos» for #moos. | pattern ^[a-z][a-z0-9-]*$ |
groups[].venues[].name | string | yes | Hall name. | ≤ 60 chars |
groups[].venues[].address | string[] | yes | Address lines. | ≥ 1 items · ≤ 3 items |
groups[].venues[].phone | string | Phone number (for the call button). | pattern ^\+?[0-9 ]{6,20}$ | |
groups[].venues[].mapUrl | string | Route / map link. | uri-reference | |
groups[].venues[].note | string | Short note. | ≤ 160 chars | |
groups[].venues[].match | string | Hall name as Swiss Unihockey writes it (to find the next home game), e.g. «Sporthalle Moos». | ≤ 60 chars | |
games | object[] | Club games ({"$data": "swissunihockey/club.json#/games"}) for «next home game here». | ≤ 1000 items |
Example rendered from example.json ↓
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)
| Field | Type | Required | Description | Rules |
|---|---|---|---|---|
title | string | Optional heading. | ≤ 80 chars | |
src | string | yes | MP4 under content/media. | pattern ^/media/.+\.mp4$ |
poster | string | Still image shown before playing. | pattern ^/media/.+\.(jpe?g|png|webp)$ | |
caption | string | Caption. | ≤ 200 chars |
Example rendered from example.json ↓
Beispielvideo
20 Jahre Bern Capitals
