1
0
Fork 0
jinjax/docs/theme/Header.jinja
Daniel Baumann 76fe8c2886
Merging upstream version 0.46.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 18:42:39 +01:00

17 lines
416 B
Django/Jinja

{#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>