-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathheader.html
More file actions
36 lines (36 loc) · 2.53 KB
/
Copy pathheader.html
File metadata and controls
36 lines (36 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% from "partials/icon.html" import icon %}
{% set class = "md-header" %}
{% if "navigation.tabs.sticky" in features %}
{% set class = class ~ " md-header--shadow md-header--lifted" %}
{% elif "navigation.tabs" not in features %}
{% set class = class ~ " md-header--shadow" %}
{% endif %}
<header class="{{ class }}" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header') }}">
<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">
<img class="docs-logo docs-logo--dark" src="{{ config.theme.logo | url }}" alt="Codacy Docs">
<img class="docs-logo docs-logo--light" src="{{ 'assets/images/codacy-docs-logo-light.svg' | url }}" alt="Codacy Docs">
</a>
<label class="md-header__button md-icon" for="__drawer" role="button" tabindex="0" aria-label="Open navigation" aria-controls="docs-navigation" aria-expanded="false" data-drawer-trigger>
{{ icon("menu-outline") }}
</label>
<label class="docs-search-trigger" role="button" tabindex="0" data-search-trigger aria-label="Open search" aria-haspopup="dialog" aria-controls="docs-search" aria-expanded="false">
{{ icon("search-outline") }}
<span>Search documentation</span><kbd data-search-shortcut>⌘ K</kbd>
</label>
<div class="version-select-container">
<select id="version-selector" class="select-css" aria-label="Documentation version" title="For Codacy Cloud, select Latest. For Codacy Self-Hosted, select the version of your Codacy installation.">
<option selected>{% if config.extra.self_hosted %}Self-hosted {{ config.extra.codacy_self_hosted_version }}{% else %}Cloud (Latest){% endif %}</option>
</select>
{{ icon("chevron-down-outline", "docs-version-select__icon") }}
</div>
<a class="docs-header__cta" href="https://www.codacy.com/signup">Get started</a>
{% if config.theme.palette %}
{% if not config.theme.palette is mapping %}{% include "partials/palette.html" %}{% endif %}
{% endif %}
{% if not config.theme.palette is mapping %}{% include "partials/javascripts/palette.html" %}{% endif %}
{% if config.extra.alternate %}{% include "partials/alternate.html" %}{% endif %}
{% if "material/search" in config.plugins %}{% include "partials/search.html" %}{% endif %}
</nav>
{% if "navigation.tabs.sticky" in features and "navigation.tabs" in features %}{% include "partials/tabs.html" %}{% endif %}
</header>