1+ {%- set class = "md-header" -%}
2+ {%- if "navigation.tabs.sticky" in features -%}
3+ {%- set class = class ~ " md-header--shadow md-header--lifted" -%}
4+ {%- elif "navigation.tabs" not in features -%}
5+ {%- set class = class ~ " md-header--shadow" -%}
6+ {%- endif -%}
7+ < header class ="{{ class }} " data-md-component ="header ">
8+ < nav class ="md-header__inner md-grid " aria-label ="{{ lang.t('header') }} ">
9+ < a href ="{{ config.extra.homepage | d(nav.homepage.url, true) | url }} " title ="{{ config.site_name | e }} " class ="md-header__button md-logo " aria-label ="{{ config.site_name }} " data-md-component ="logo ">
10+ {% include "partials/logo.html" %}
11+ </ a >
12+ < label class ="md-header__button md-icon " for ="__drawer ">
13+ {% set icon = config.theme.icon.menu or "material/menu" %}
14+ {% include ".icons/" ~ icon ~ ".svg" %}
15+ </ label >
16+ < div class ="md-header__title " data-md-component ="header-title ">
17+ < div class ="md-header__ellipsis ">
18+ < div class ="md-header__topic ">
19+ < span class ="md-ellipsis ">
20+ {{ config.site_name }}
21+ </ span >
22+ </ div >
23+ < div class ="md-header__topic " data-md-component ="header-topic ">
24+ < span class ="md-ellipsis ">
25+ {% if page.meta and page.meta.title %}
26+ {{ page.meta.title }}
27+ {% else %}
28+ {{ page.title }}
29+ {% endif %}
30+ </ span >
31+ </ div >
32+ </ div >
33+ </ div >
34+ {% if config.theme.palette %}
35+ {% if not config.theme.palette is mapping %}
36+ {% include "partials/palette.html" %}
37+ {% endif %}
38+ {% endif %}
39+ {% if config.extra.alternate %}
40+ {% include "partials/alternate.html" %}
41+ {% endif %}
42+ {% if "material/search" in config.plugins %}
43+ < label class ="md-header__button md-icon " for ="__search ">
44+ {% set icon = config.theme.icon.search or "material/magnify" %}
45+ {% include ".icons/" ~ icon ~ ".svg" %}
46+ </ label >
47+ {% include "partials/search.html" %}
48+ {% endif %}
49+ {% if config.repo_url %}
50+ < div class ="md-header__source ">
51+ {% include "partials/source.html" %}
52+ {% if config.extra.git %}
53+ < div class ="git-info-bar ">
54+ < div class ="md-grid ">
55+ < div class ="git-info-item ">
56+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 16 16 " fill ="currentColor ">
57+ < path d ="M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.75a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z "/>
58+ </ svg >
59+ < a href ="{{ config.repo_url }}/commit/{{ config.extra.git.commit }} " target ="_blank " title ="Go to Commit ">
60+ {{ config.extra.git.short_commit }}
61+ </ a >
62+ </ div >
63+ < div class ="git-info-item " title ="Last Updated ">
64+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 16 16 " fill ="currentColor ">
65+ < path d ="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7-3.25v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5a.75.75 0 0 1 1.5 0Z "/>
66+ </ svg >
67+ {{ config.extra.git.date }}
68+ </ div >
69+ </ div >
70+ </ div >
71+ {% endif %}
72+ </ div >
73+ {% endif %}
74+ </ nav >
75+ {% if "navigation.tabs.sticky" in features %}
76+ {% if "navigation.tabs" in features %}
77+ {% include "partials/tabs.html" %}
78+ {% endif %}
79+ {% endif %}
80+ </ header >
81+ {% if "navigation.tabs" in features %}
82+ {% if "navigation.tabs.sticky" not in features %}
83+ {% include "partials/tabs.html" %}
84+ {% endif %}
85+ {% endif %}
0 commit comments