@caweb/template 1.0.0-beta.1 → 1.0.0-beta.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.
@@ -17,7 +17,6 @@ jobs:
17
17
  with:
18
18
  node-version: 20
19
19
  registry-url: https://registry.npmjs.org/
20
- - run: npm ci
21
20
  - run: npm publish
22
21
  env:
23
22
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/CHANGELOG.md CHANGED
@@ -1,2 +1,6 @@
1
+ v1.0.1
2
+ - Updated nav.header and utility.links references
3
+ - Added new navFooter partial
4
+
1
5
  v1.0.0
2
6
  - Removed templating out of @caweb/html-webpack-plugin and into it's own individual package
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
@@ -32,5 +32,8 @@
32
32
  "dependencies": {
33
33
  "@caweb/framework": "^1.8.0-beta.1",
34
34
  "@caweb/icon-library": "^1.1.0"
35
+ },
36
+ "devDependencies": {
37
+ "@caweb/webpack": "^1.4.0-beta.3"
35
38
  }
36
39
  }
@@ -1,22 +1,9 @@
1
1
  <footer class="global-footer">
2
2
  <div class="container">
3
3
  <div class="d-flex">
4
- {{#if footer.nav }}
5
- <ul class="nav footer-links">
6
- <li class="nav-item">
7
- <a href="https://www.ca.gov?utm_campaign=state_template_link&amp;utm_medium=footer&amp;utm_source=external" class="nav-link ps-0" title="CA.gov" target="_blank">
8
- <span class="ca-gov-logo-svg"></span>
9
- </a>
10
- </li>
11
- {{#each footer.nav }}
12
- {{#if this.url }}{{#if this.label }}
13
- <li class="nav-item">
14
- <a href="{{ this.url }}" class="nav-link">{{ this.label }}</a>
15
- </li>
16
- {{/if}}{{/if}}
17
- {{/each}}
18
- </ul>
19
- {{/if}}
4
+
5
+ {{> navFooter }}
6
+
20
7
  {{#if social }}
21
8
  <ul class="nav social-share-links">
22
9
  {{#each social }}
@@ -0,0 +1,18 @@
1
+ <!-- Navigation -->
2
+ {{#if footer.nav }}
3
+ <ul class="nav footer-links">
4
+ <li class="nav-item">
5
+ <a href="https://www.ca.gov?utm_campaign=state_template_link&amp;utm_medium=footer&amp;utm_source=external" class="nav-link ps-0" title="CA.gov" target="_blank">
6
+ <span class="ca-gov-logo-svg"></span>
7
+ </a>
8
+ </li>
9
+ {{#each footer.nav }}
10
+ {{#if this.url }}{{#if this.label }}
11
+ <li class="nav-item">
12
+ <a href="{{ this.url }}" class="nav-link">{{ this.label }}</a>
13
+ </li>
14
+ {{/if}}{{/if}}
15
+ {{/each}}
16
+ </ul>
17
+ {{/if}}
18
+
@@ -1,9 +1,9 @@
1
1
  <!-- Navigation -->
2
2
  <div class="navigation border-bottom">
3
3
  <div class="container">
4
- {{#if nav.header }}
4
+ {{#if header.nav }}
5
5
  <ul class="nav" aria-label="Main navigation">
6
- {{#each nav.header }}
6
+ {{#each header.nav }}
7
7
  {{#if this.sub }}
8
8
  <li class="nav-item dropdown">
9
9
  <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false" data-bs-popper-config='{"placement": "bottom-start", "strategy": "fixed"}'>{{ this.label }}</a>
@@ -13,9 +13,9 @@
13
13
  </div>
14
14
  <p class="official-tag">Official website of the State of California</p>
15
15
  </div>
16
- {{#if header.utility.links }}
16
+ {{#if header.utility }}
17
17
  <div class="settings-links">
18
- {{#each header.utility.links }}
18
+ {{#each header.utility }}
19
19
  {{#if this.url }}{{#if this.label }}
20
20
  <a href="{{ this.url }}">{{ this.label }}</a>
21
21
  {{/if}}{{/if}}