create-berna-stencil 1.0.38 → 1.0.40

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": "create-berna-stencil",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
5
5
  "keywords": [
6
6
  "eleventy",
@@ -32,6 +32,7 @@
32
32
  "files": [
33
33
  "bin/",
34
34
  "src/",
35
+ "src/_routes",
35
36
  "_tools/",
36
37
  ".eleventy.js",
37
38
  ".eleventyignore",
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: "examplePage"
3
+ permalink: "/example-page/"
4
+ layout: includes.njk
5
+ ---
6
+
7
+ <!-- !IMPORTANT -->
8
+ <!-- DO NOT ADD ANYTHING HERE -->
9
+ <!-- You should create a new component.njk into src/components and include that in components/layouts/includes.njk -->
@@ -5,8 +5,8 @@
5
5
  </a>
6
6
  <div class="nav-links">
7
7
  <a class="btn" href="/">Homepage</a>
8
+ <a class="btn" href="/example-page">Example page</a>
8
9
  <a class="btn" href="/about-us">About-us</a>
9
- <a class="btn" href="/work-with-us">Work with us</a>
10
10
  </div>
11
11
  <div class="nav-links">
12
12
  <a class="btn" href="/contact-us">Contact us</a>
@@ -7,6 +7,9 @@ layout: base.njk
7
7
  {% if title == "homepage" %}
8
8
  {% include "welcome.njk" %}
9
9
 
10
+ {% elif title == "examplePage" %}
11
+ {#{% include "component.njk" %}#}
12
+
10
13
  {% else %}
11
14
  {% include "404/_404.njk" %}
12
15
  {{ content | safe }}
@@ -1,44 +1,54 @@
1
- {
2
- "site_name": "Site name",
3
- "title": "Site title",
4
- "description": "Site description",
5
- "keywords": "keyword1, keyword2, keyword3",
6
- "domain": "yoursite.com",
7
- "url": "https://yoursite.com",
8
- "lang": "en",
9
- "author": "Name and surname",
10
- "data_bs_theme": "dark",
11
- "favicon": "/assets/brand/favicon.svg",
12
- "logo": "/assets/brand/logo.svg",
13
- "copyright": {
14
- "year": "2026",
15
- "text": "Copyright text"
16
- },
17
- "legal": {
18
- "privacy": "",
19
- "cookie": "",
20
- "cookieControls": "",
21
- "terms": ""
22
- },
23
- "pages": {
24
- "404": {
25
- "seo": {
26
- "title": "404 - Not found"
27
- },
28
- "cdn": {
29
- "css": [],
30
- "js": []
31
- }
32
- },
33
- "homepage": {
34
- "seo": {
35
- "title": "Homepage",
36
- "description": "Description"
37
- },
38
- "cdn": {
39
- "css": [],
40
- "js": []
41
- }
42
- }
43
- }
1
+ {
2
+ "site_name": "Site name",
3
+ "title": "Site title",
4
+ "description": "Site description",
5
+ "keywords": "keyword1, keyword2, keyword3",
6
+ "domain": "yoursite.com",
7
+ "url": "https://yoursite.com",
8
+ "lang": "en",
9
+ "author": "Name and surname",
10
+ "data_bs_theme": "dark",
11
+ "favicon": "/assets/brand/favicon.svg",
12
+ "logo": "/assets/brand/logo.svg",
13
+ "copyright": {
14
+ "year": "2026",
15
+ "text": "Copyright text"
16
+ },
17
+ "legal": {
18
+ "privacy": "",
19
+ "cookie": "",
20
+ "cookieControls": "",
21
+ "terms": ""
22
+ },
23
+ "pages": {
24
+ "404": {
25
+ "seo": {
26
+ "title": "404 - Not found"
27
+ },
28
+ "cdn": {
29
+ "css": [],
30
+ "js": []
31
+ }
32
+ },
33
+ "homepage": {
34
+ "seo": {
35
+ "title": "Homepage",
36
+ "description": "Description"
37
+ },
38
+ "cdn": {
39
+ "css": [],
40
+ "js": []
41
+ }
42
+ },
43
+ "examplePage": {
44
+ "seo": {
45
+ "title": "Example Page",
46
+ "description": "description"
47
+ },
48
+ "cdn": {
49
+ "css": [],
50
+ "js": []
51
+ }
52
+ }
53
+ }
44
54
  }
@@ -0,0 +1,19 @@
1
+ //==========================
2
+ // JAVASCRIPT MODULES IMPORTS
3
+ //==========================
4
+
5
+ // Call anywhere
6
+ import { showNotification } from '../modules/notification.js';
7
+
8
+ // Uncomment to enable optional modules (call inside DOMContentLoaded)
9
+ // import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';
10
+ // import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';
11
+
12
+ //==========================
13
+ // PAGE CUSTOM JAVASCRIPT
14
+ //==========================
15
+
16
+ document.addEventListener("DOMContentLoaded", () => {
17
+ });
18
+
19
+ showNotification("Example notification", "success", 3000);
@@ -0,0 +1,17 @@
1
+ //==========================
2
+ // CSS MODULES IMPORTS
3
+ //==========================
4
+
5
+ @use "../modules/root" as root;
6
+
7
+ @import "../modules/global";
8
+ // Import any other module you need by import down here
9
+ @import "../modules/notification";
10
+
11
+ //==========================
12
+ // PAGE CUSTOM CSS RULES
13
+ //==========================
14
+
15
+ // body {
16
+ // background-color: root.$primary;
17
+ // }