@caweb/template 1.1.1 → 1.1.2
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 +1 -1
- package/patterns/404.html +2 -2
- package/patterns/default.html +2 -2
- package/patterns/serp.html +2 -2
- package/semantics/head.html +2 -2
- package/semantics/nav-mega-dropdown.html +40 -1
package/package.json
CHANGED
package/patterns/404.html
CHANGED
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
{{> footer }}
|
|
51
|
-
{{#
|
|
51
|
+
{{#isScheme scheme }}
|
|
52
52
|
<script src="/node_modules/@caweb/framework/build/{{ scheme }}.js"></script>
|
|
53
|
-
{{/
|
|
53
|
+
{{/isScheme}}
|
|
54
54
|
{{#if assets }}
|
|
55
55
|
{{#each assets }}
|
|
56
56
|
{{#if (endsWith this ".js") }}
|
package/patterns/default.html
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
{{> footer }}
|
|
26
|
-
{{#
|
|
26
|
+
{{#isScheme scheme }}
|
|
27
27
|
<script src="/node_modules/@caweb/framework/build/{{ scheme }}.js"></script>
|
|
28
|
-
{{/
|
|
28
|
+
{{/isScheme}}
|
|
29
29
|
{{#if assets }}
|
|
30
30
|
{{#each assets }}
|
|
31
31
|
{{#if (endsWith this ".js") }}
|
package/patterns/serp.html
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
{{> footer }}
|
|
23
|
-
{{#
|
|
23
|
+
{{#isScheme scheme }}
|
|
24
24
|
<script src="/node_modules/@caweb/html-webpack-plugin/build/{{ scheme }}.js"></script>
|
|
25
|
-
{{/
|
|
25
|
+
{{/isScheme}}
|
|
26
26
|
{{#if assets }}
|
|
27
27
|
{{#each assets }}
|
|
28
28
|
{{#if (endsWith this ".js") }}
|
package/semantics/head.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#
|
|
1
|
+
{{#isScheme scheme }}
|
|
2
2
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
3
3
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
4
4
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
href="/node_modules/@caweb/template/media/apple-touch-icon-57x57.png" />
|
|
43
43
|
<link rel="shortcut icon" href="/node_modules/@caweb/template/media/apple-touch-icon-57x57.png" />
|
|
44
44
|
<link rel="apple-touch-icon" href="/node_modules/@caweb/template/media/apple-touch-icon.png" />
|
|
45
|
-
{{/
|
|
45
|
+
{{/isScheme}}
|
|
46
46
|
|
|
47
47
|
{{#if meta }}
|
|
48
48
|
{{#each meta }}
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
<!-- this menu is not yet ready -->
|
|
1
|
+
<!-- this menu is not yet ready --><!-- Navigation -->
|
|
2
|
+
<div class="navigation border-bottom">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<ul class="nav mega dropdown" aria-label="Main navigation">
|
|
5
|
+
{{#each header.nav }}
|
|
6
|
+
{{#if this.sub }}
|
|
7
|
+
<li class="nav-item">
|
|
8
|
+
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false" data-bs-popper-config='{"placement": "bottom-start", "strategy": "absolute"}'>{{ this.label }}</a>
|
|
9
|
+
<div class="sub-nav">
|
|
10
|
+
<ul class="dropdown-menu">
|
|
11
|
+
{{#each this.sub }}
|
|
12
|
+
<li>
|
|
13
|
+
<a class="dropdown-item nav-link{{#ifCond this.media.align '!==' undefined }} with-media-{{ this.media.align }}{{/ifCond}}" href="{{ this.url }}">
|
|
14
|
+
|
|
15
|
+
{{#if this.media.icon }}
|
|
16
|
+
<span class="fs-1 ca-gov-icon-{{ this.media.icon }}"></span>
|
|
17
|
+
{{/if}}
|
|
18
|
+
{{#if this.media.img }}
|
|
19
|
+
<img src="{{ this.media.img.src }}" alt="{{ this.media.img.alt }}">
|
|
20
|
+
{{/if}}
|
|
21
|
+
<div>
|
|
22
|
+
<span class="fs-4">{{ this.label }}</span>
|
|
23
|
+
{{#if this.description }}
|
|
24
|
+
<div class="link-description">{{ this.description }}</div>
|
|
25
|
+
{{/if}}
|
|
26
|
+
</div>
|
|
27
|
+
</a>
|
|
28
|
+
</li>
|
|
29
|
+
{{/each}}
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
{{else}}
|
|
33
|
+
<li class="nav-item">
|
|
34
|
+
<a class="nav-link" href="{{ this.url }}">{{ this.label }}</a>
|
|
35
|
+
{{/if}}
|
|
36
|
+
</li>
|
|
37
|
+
{{/each}}
|
|
38
|
+
</ul>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|