summaryrefslogtreecommitdiffstats
path: root/docs/theme/Header.jinja
blob: 1b719cf1c14dd4332f347564bedf2de1a908d57c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{#def title="", section="" #}

{% set section = section or page.section if section != false else None %}
{% set title = title or page.title %}

<header {{ attrs.render(
  class="cd-header",
  data_component="Header",
) }}>
  <div>
    {% if section -%}
    <div>{{ section }}</div>
    {%- endif %}
    <h1>{{ title | utils.widont }}</h1>
  </div>
  <p class="description">{{ content | utils.widont }}</p>
</header>