@caweb/template 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/semantics/header.html
CHANGED
|
@@ -26,5 +26,17 @@
|
|
|
26
26
|
{{> mobileControls }}
|
|
27
27
|
|
|
28
28
|
{{! Navigation }}
|
|
29
|
-
{{
|
|
29
|
+
{{#if header.nav }}
|
|
30
|
+
{{#ifCond (ifCond header.menu '===' undefined) '||' (ifCond header.menu '===' 'single' ) }}
|
|
31
|
+
{{> navSingle }}
|
|
32
|
+
{{/ifCond}}
|
|
33
|
+
|
|
34
|
+
{{#ifCond (ifCond header.menu '!==' undefined) '&&' (ifCond header.menu '===' 'dropdown' ) }}
|
|
35
|
+
{{> navDropdown }}
|
|
36
|
+
{{/ifCond}}
|
|
37
|
+
|
|
38
|
+
{{#ifCond (ifCond header.menu '!==' undefined) '&&' (ifCond header.menu '===' 'megadropdown' ) }}
|
|
39
|
+
{{> navMegaDropdown }}
|
|
40
|
+
{{/ifCond}}
|
|
41
|
+
{{/if}}
|
|
30
42
|
</header>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<!-- Navigation -->
|
|
2
2
|
<div class="navigation border-bottom">
|
|
3
3
|
<div class="container">
|
|
4
|
-
{{#if header.nav }}
|
|
5
4
|
<ul class="nav" aria-label="Main navigation">
|
|
6
5
|
{{#each header.nav }}
|
|
7
6
|
{{#if this.sub }}
|
|
@@ -25,6 +24,5 @@
|
|
|
25
24
|
</li>
|
|
26
25
|
{{/each}}
|
|
27
26
|
</ul>
|
|
28
|
-
{{/if}}
|
|
29
27
|
</div>
|
|
30
28
|
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- this menu is not yet ready -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- Navigation -->
|
|
2
|
+
<div class="navigation border-bottom">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<ul class="nav" aria-label="Main navigation">
|
|
5
|
+
{{#each header.nav }}
|
|
6
|
+
<li class="nav-item">
|
|
7
|
+
<a class="nav-link" href="{{ this.url }}">{{ this.label }}</a>
|
|
8
|
+
</li>
|
|
9
|
+
{{/each}}
|
|
10
|
+
</ul>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|