summaryrefslogtreecommitdiffstats
path: root/docs/theme/Header.jinja
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/theme/Header.jinja17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/theme/Header.jinja b/docs/theme/Header.jinja
new file mode 100644
index 0000000..1b719cf
--- /dev/null
+++ b/docs/theme/Header.jinja
@@ -0,0 +1,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>