forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
78 lines (66 loc) · 2.58 KB
/
default.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Organization">
<head>
{% include head.html %}
</head>
<body id="{{page.title | downcase | replace:' ','-' }}">
<main id="content-container">
<app-drawer id="sidebar" unresolved>
<polymer-flex-layout id="logo-container" isContainer align="center">
<a href="/" class="logo"><img src="/images/logos/lockup.svg"></a>
<polymer-ui-icon id="dropdown-toggle" size="35" src="/images/picons/ic_arrowDropDown_dark_.png">
</polymer-ui-icon>
</polymer-flex-layout>
{% include dropdown-panel.html %}
<docs-menu unresolved
menu="{{site.data.pagetypes[page.type].menu}}"
coreElements='{% list_components dir:components prefix:core blacklist:"core-slide core-layout core-doc-viewer core-home-page core-transition-css core-overlay-layer core-key-helper core-doc-toc core-doc-page" %}'
paperElements='{% list_components dir:components prefix:paper blacklist:"paper-calculator paper-doc-viewer paper-ink paper-scaffold paper-menu-button-transition paper-menu-button-overlay-container paper-form paper-row paper-group"%}'>
</docs-menu>
</app-drawer>
<scroll-area sidebar unresolved>
<site-banner type="{{page.type}}" navgroup="{{page.navgroup}}" shortname="{{page.shortname}}" unresolved>
{% include top-nav.html %}
<header>
<h1>{{page.title}}</h1>
{% if page.subtitle %}
<summary>{{page.subtitle}}</summary>
{% else if page.type %}
<summary>{{site.data.pagetypes[page.type].headertitle}}</summary>
{% endif %}
</header>
</site-banner>
{% comment %}
Allow individual pages to turn off permalinks
{% endcomment %}
{% capture permalinks_class %}
{% if site.add_permalinks %}
{% case page.add_permalinks %}
{% when true %}
show-permalinks
{% when false %}
{% comment %}
Intentionally empty in case variable isn't defined in page.
{% endcomment %}
{% else %}
show-permalinks
{% endcase %}
{% endif %}
{% endcapture %}
<article class="{{permalinks_class | trim}}">
{% include edit_on_github.html %}
<header class="onlyonmobile">
<h1>{{page.title}}</h1>
{% if page.subtitle %}
<summary>{{page.subtitle}}</summary>
{% else if page.type %}
<summary>{{site.data.pagetypes[page.type].headertitle}}</summary>
{% endif %}
</header>
{{content}}
</article>
{% include footer.html %}
</scroll-area>
</main>
</body>
</html>