Site status
The site-status component pairs a visible operational state with a link to its approved status source. It renders caller-supplied state; fetching or interpreting monitoring data remains the host’s responsibility.
Example#
BHDicaire.com OperationalWhen to use#
- Place it in the footer when an approved status source can supply the state
- Use one indicator per page for the site-wide operational state
- Not for page-level notices — use a callout in the page body
Implementation#
{{ partial "site-status.html" (dict
"href" "https://status.example.com"
"label" "BHDicaire.com"
"state" "operational"
"statusText" "Operational"
) }}The partial accepts operational, degraded, outage, maintenance, or unknown. Each state receives a scoped modifier class, while the visible text carries the meaning. Markdown pages use the site-status shortcode.
Options#
| Option | Purpose |
|---|---|
href | Required link to the approved status source |
label | Required visible name for the site or service |
state | Required supported state used for the indicator style |
statusText | Required localized text that names the current state |
Interface manifest
- Kind
- Component
- Category
- Content
- Status
- Implemented
- Implementation
- Partial:
layouts/partials/site-status.htmlShortcode:layouts/shortcodes/site-status.htmlCSS:assets/css/site.css - Related interfaces
- Site status
Accessibility#
- The complete indicator is a native link, reachable with Tab and activated with Enter
- The visible text names the state, so meaning does not depend on the indicator colour
- The state text uses
role="status"andaria-atomic="true"; changing its text is announced politely without moving focus - Callers must update both
stateandstatusTextwhen the approved source changes