-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathheader.ftl
33 lines (33 loc) · 1.48 KB
/
header.ftl
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
<#import "source_set_selector.ftl" as source_set_selector>
<#macro display>
<nav class="navigation theme-dark" id="navigation-wrapper">
<@template_cmd name="pathToRoot">
<a class="library-name--link" href="${pathToRoot}index.html">
<@template_cmd name="projectName">
${projectName}
</@template_cmd>
</a>
</@template_cmd>
<button class="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only" id="toc-toggle"
type="button">Toggle table of contents
</button>
<div class="navigation-controls--break ui-kit_mobile-only"></div>
<div class="library-version" id="library-version">
<#-- This can be handled by the versioning plugin -->
<@version/>
</div>
<div class="navigation-controls">
<@source_set_selector.display/>
<#if homepageLink?has_content>
<a class="navigation-controls--btn navigation-controls--btn_homepage" id="homepage-link"
href="${homepageLink}"></a>
</#if>
<button class="navigation-controls--btn navigation-controls--btn_theme" id="theme-toggle-button"
type="button">Switch theme
</button>
<div class="navigation-controls--btn navigation-controls--btn_search" id="searchBar" role="button">Search in
API
</div>
</div>
</nav>
</#macro>