@caweb/template 1.0.13 → 1.0.15

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.
@@ -13,9 +13,9 @@
13
13
  <h3>How to's</h3>
14
14
  <ul>
15
15
  <li>Add more pages, you can create additional HTML files in the <span class="text-danger">/content/pages/</span> directory. Each file will be rendered as a separate page in your project.</li>
16
- <li>Use media on your pages, you can place your media files in the <span class="text-danger">/content/media/</span> directory. You can then reference these files in your HTML pages.</li>
17
- <li>Change the favicon, you can place your favicon file in the <span class="text-danger">/content/media/</span> directory. File name must be <span class="text-danger">favicon.ico</span>.</li>
18
- <li>Change the logo, you can place your logo file in the <span class="text-danger">/content/media/</span> directory. File name must be <span class="text-danger">logo.png</span>.</li>
16
+ <li>Use media on your pages, you can place your media files in the <span class="text-danger">/media/</span> directory. You can then reference these files in your HTML pages.</li>
17
+ <li>Change the favicon, you can place your favicon file in the <span class="text-danger">/media/</span> directory. File name must be <span class="text-danger">favicon.ico</span>.</li>
18
+ <li>Change the logo, you can place your logo file in the <span class="text-danger">/media/</span> directory. File name must be <span class="text-danger">logo.png</span>.</li>
19
19
  <li>For more information on how to, visit our <a href="/how-to/index.html">How To's</a> page.</li>
20
20
  </ul>
21
21
 
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.13",
3
+ "version": "1.0.15",
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.2",
51
- "@caweb/icon-library": "^1.1.6"
50
+ "@caweb/framework": "^1.9.8",
51
+ "@caweb/icon-library": "^1.1.7"
52
52
  },
53
53
  "dependencies": {
54
- "@caweb/webpack": "^1.6.2"
54
+ "@caweb/webpack": "^1.6.6"
55
55
  }
56
56
  }
@@ -0,0 +1,32 @@
1
+ <div class="container">
2
+ <div class="row">
3
+ <div class="col">
4
+ <h1>We're sorry, that link didn't work.</h1>
5
+
6
+ <p class="lead">To find what you need, you can:</p>
7
+
8
+
9
+ <ul>
10
+ <li>
11
+ Browse our
12
+ <a href="index.html">homepage</a>
13
+ </li>
14
+ <li>Double check the link</li>
15
+ <li>
16
+ Use our
17
+ <a href="serp.html?q=">search</a>
18
+ </li>
19
+ </ul>
20
+ <p>
21
+ Did you get here from a link on our website?
22
+ <a href="contact.html">Let us know</a>
23
+ so we can fix it.
24
+ </p>
25
+
26
+ <p class="fs-7">Error: Page not found (404)</p>
27
+ </div>
28
+ </div>
29
+ </main>
30
+ </div>
31
+ </div>
32
+
@@ -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 'serp.html' '!==' (replace htmlWebpackPlugin.options.template '.*(serp.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}}