Site header
Description
The site-wide header: the gradient wordmark linking back home, and the main navigation.
The wordmark scales fluidly from 28px on phones to 36px on wide screens.
Each nav link is a dict with label and url, plus active for the
section the current page is in.
Usage
Minimal example
{% site_header "foo" %}
All parameters
{% site_header "foo" home_url="/" %}
Qualified tag usage
{% ui__site_header "foo" %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
site_name
|
str
|
Required | — | — | Text shown as the wordmark. |
home_url
|
str
|
Optional |
/
|
— | Where the wordmark links to. |
links
|
list
|
Optional | — | — | Nav links: dicts with label, url and an optional active flag. |
Select variant preset
Background colour
Viewport width
Zoom level
{% site_header "foo" %}
<header class="site-header ">
<a href="/" class="site-header__logo">foo</a>
</header>