@caweb/template 1.0.12 → 1.0.14

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.
Binary file
Binary file
Binary file
@@ -0,0 +1,59 @@
1
+ {{#if scheme }}
2
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
3
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4
+
5
+ <!-- Icon Font Library -->
6
+ <link rel="stylesheet" href="/node_modules/@caweb/icon-library/build/font-only.css" />
7
+
8
+ <!-- Template Scheme CSS -->
9
+ <link rel="stylesheet" href="/node_modules/@caweb/framework/build/{{ scheme }}.css" />
10
+
11
+ <link
12
+ rel="apple-touch-icon-precomposed"
13
+ sizes="100x100"
14
+ href="/media/apple-touch-icon-precomposed.png" />
15
+ <link rel="icon" sizes="192x192" href="/media/apple-touch-icon-192x192.png" />
16
+ <link
17
+ rel="apple-touch-icon-precomposed"
18
+ sizes="180x180"
19
+ href="/media/apple-touch-icon-180x180.png" />
20
+ <link
21
+ rel="apple-touch-icon-precomposed"
22
+ sizes="152x152"
23
+ href="/media/apple-touch-icon-152x152.png" />
24
+ <link
25
+ rel="apple-touch-icon-precomposed"
26
+ sizes="144x144"
27
+ href="/media/apple-touch-icon-144x144.png" />
28
+ <link
29
+ rel="apple-touch-icon-precomposed"
30
+ sizes="120x120"
31
+ href="/media/apple-touch-icon-120x120.png" />
32
+ <link
33
+ rel="apple-touch-icon-precomposed"
34
+ sizes="114x114"
35
+ href="/media/apple-touch-icon-114x114.png" />
36
+ <link
37
+ rel="apple-touch-icon-precomposed"
38
+ sizes="72x72"
39
+ href="/media/apple-touch-icon-72x72.png" />
40
+ <link
41
+ rel="apple-touch-icon-precomposed"
42
+ href="/media/apple-touch-icon-57x57.png" />
43
+ <link rel="shortcut icon" href="/media/apple-touch-icon-57x57.png" />
44
+ <link rel="apple-touch-icon" href="/media/apple-touch-icon.png" />
45
+ {{/if}}
46
+
47
+ {{#if meta }}
48
+ {{#each meta }}
49
+ <meta name="{{ @key }}" content="{{ this }}" />
50
+ {{/each}}
51
+ {{/if}}
52
+
53
+ {{#if assets }}
54
+ {{#each assets }}
55
+ {{#if (endsWith this ".css") }}
56
+ <link rel="stylesheet" href="{{ this }}" />
57
+ {{/if}}
58
+ {{/each}}
59
+ {{/if}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
@@ -47,10 +47,10 @@
47
47
  "serve:trinity": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme trinity' && npm run serve"
48
48
  },
49
49
  "devDependencies": {
50
- "@caweb/framework": "^1.9.1",
51
- "@caweb/icon-library": "^1.1.5"
50
+ "@caweb/framework": "^1.9.7",
51
+ "@caweb/icon-library": "^1.1.7"
52
52
  },
53
53
  "dependencies": {
54
- "@caweb/webpack": "^1.6.1"
54
+ "@caweb/webpack": "^1.6.5"
55
55
  }
56
56
  }
@@ -2,29 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <title>{{ title }}</title>
5
- {{#if scheme }}
6
- <!-- Icon Font Library -->
7
- <link rel="stylesheet" href="node_modules/@caweb/icon-library/build/font-only.css" />
8
-
9
- <!-- Template Scheme CSS -->
10
- <link rel="stylesheet" href="node_modules/@caweb/framework/build/{{ scheme }}.css" />
11
- {{/if}}
12
-
13
-
14
- {{#if meta }}
15
- {{#each meta }}
16
- <meta name="{{ @key }}" content="{{ this }}" />
17
- {{/each}}
18
- {{/if}}
19
-
20
- {{#if assets }}
21
- {{#each assets }}
22
- {{#if (endsWith this ".css") }}
23
- <link rel="stylesheet" href="{{ this }}" />
24
- {{/if}}
25
- {{/each}}
26
- {{/if}}
27
-
5
+ {{> head }}
28
6
  </head>
29
7
 
30
8
  <body>
@@ -2,28 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <title>{{ title }}</title>
5
- {{#if scheme }}
6
- <!-- Icon Font Library -->
7
- <link rel="stylesheet" href="node_modules/@caweb/icon-library/build/font-only.css" />
8
-
9
- <!-- Template Scheme CSS -->
10
- <link rel="stylesheet" href="node_modules/@caweb/framework/build/{{ scheme }}.css" />
11
- {{/if}}
12
-
13
-
14
- {{#if meta }}
15
- {{#each meta }}
16
- <meta name="{{ @key }}" content="{{ this }}" />
17
- {{/each}}
18
- {{/if}}
19
-
20
- {{#if assets }}
21
- {{#each assets }}
22
- {{#if (endsWith this ".css") }}
23
- <link rel="stylesheet" href="{{ this }}" />
24
- {{/if}}
25
- {{/each}}
26
- {{/if}}
5
+ {{> head}}
27
6
  </head>
28
7
  <body class="page-template-searchpage">
29
8
  {{> header }}
@@ -9,10 +9,8 @@
9
9
  </div>
10
10
  {{/if}}
11
11
  {{#if google.search }}
12
- {{#ifCond 'search' '!==' htmlWebpackPlugin.options.templateParameters.template }}
13
-
12
+ {{#ifCond 'search.html' '!==' (replace htmlWebpackPlugin.options.template '.*(search.html)$' '$1' ) }}
14
13
  {{> searchForm }}
15
-
16
14
  {{/ifCond}}
17
15
  {{/if}}
18
16
  <button class="mobile-control toggle-menu ca-gov-icon-menu fs-2" data-bs-toggle="collapse" data-bs-target=".mobile-controlled" aria-expanded="false" aria-controls="mobile-controls" aria-label="Open the navigation menu">
@@ -0,0 +1,63 @@
1
+ {{#if scheme }}
2
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
3
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4
+
5
+ <!-- Icon Font Library -->
6
+ <link rel="stylesheet" href="/node_modules/@caweb/icon-library/build/font-only.css" />
7
+
8
+ <!-- Template Scheme CSS -->
9
+ <link rel="stylesheet" href="/node_modules/@caweb/framework/build/{{ scheme }}.css" />
10
+
11
+ <link
12
+ rel="apple-touch-icon-precomposed"
13
+ sizes="100x100"
14
+ href="/media/apple-touch-icon-precomposed.png" />
15
+ <link rel="icon" sizes="192x192" href="/media/apple-touch-icon-192x192.png" />
16
+ <link
17
+ rel="apple-touch-icon-precomposed"
18
+ sizes="180x180"
19
+ href="/media/apple-touch-icon-180x180.png" />
20
+ <link
21
+ rel="apple-touch-icon-precomposed"
22
+ sizes="152x152"
23
+ href="/media/apple-touch-icon-152x152.png" />
24
+ <link
25
+ rel="apple-touch-icon-precomposed"
26
+ sizes="144x144"
27
+ href="/media/apple-touch-icon-144x144.png" />
28
+ <link
29
+ rel="apple-touch-icon-precomposed"
30
+ sizes="120x120"
31
+ href="/media/apple-touch-icon-120x120.png" />
32
+ <link
33
+ rel="apple-touch-icon-precomposed"
34
+ sizes="114x114"
35
+ href="/media/apple-touch-icon-114x114.png" />
36
+ <link
37
+ rel="apple-touch-icon-precomposed"
38
+ sizes="72x72"
39
+ href="/media/apple-touch-icon-72x72.png" />
40
+ <link
41
+ rel="apple-touch-icon-precomposed"
42
+ href="/media/apple-touch-icon-57x57.png" />
43
+ <link rel="shortcut icon" href="/media/apple-touch-icon-57x57.png" />
44
+ <link rel="apple-touch-icon" href="/media/apple-touch-icon.png" />
45
+ {{/if}}
46
+
47
+ {{#if meta }}
48
+ {{#each meta }}
49
+ <meta name="{{ @key }}" content="{{ this }}" />
50
+ {{/each}}
51
+ {{/if}}
52
+
53
+ {{#if assets }}
54
+ {{#each assets }}
55
+ {{#if (endsWith this ".css") }}
56
+ <link rel="stylesheet" href="{{ this }}" />
57
+ {{/if}}
58
+ {{/each}}
59
+ {{/if}}
60
+
61
+ {{#if google.search }}
62
+ <script async src="https://cse.google.com/cse.js?cx={{ google.search }}"></script>
63
+ {{/if}}