@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
package/patterns/404.html CHANGED
@@ -48,9 +48,9 @@
48
48
  </div>
49
49
  </div>
50
50
  {{> footer }}
51
- {{#if scheme }}
51
+ {{#isScheme scheme }}
52
52
  <script src="/node_modules/@caweb/framework/build/{{ scheme }}.js"></script>
53
- {{/if}}
53
+ {{/isScheme}}
54
54
  {{#if assets }}
55
55
  {{#each assets }}
56
56
  {{#if (endsWith this ".js") }}
@@ -23,9 +23,9 @@
23
23
  </div>
24
24
  </div>
25
25
  {{> footer }}
26
- {{#if scheme }}
26
+ {{#isScheme scheme }}
27
27
  <script src="/node_modules/@caweb/framework/build/{{ scheme }}.js"></script>
28
- {{/if}}
28
+ {{/isScheme}}
29
29
  {{#if assets }}
30
30
  {{#each assets }}
31
31
  {{#if (endsWith this ".js") }}
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
  </div>
22
22
  {{> footer }}
23
- {{#if scheme }}
23
+ {{#isScheme scheme }}
24
24
  <script src="/node_modules/@caweb/html-webpack-plugin/build/{{ scheme }}.js"></script>
25
- {{/if}}
25
+ {{/isScheme}}
26
26
  {{#if assets }}
27
27
  {{#each assets }}
28
28
  {{#if (endsWith this ".js") }}
@@ -1,4 +1,4 @@
1
- {{#if scheme }}
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
- {{/if}}
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>