create-berna-stencil 2.0.14 → 2.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Building a website from scratch involves a lot of moving parts: templating engin
12
12
  - 📁 **Scalable structure** — a clean, opinionated project layout that grows with your needs
13
13
  - 🌍 **Open source** — free to use, free to modify, free to share
14
14
 
15
- ![Version](https://img.shields.io/badge/version-2.0.14-blue)
15
+ ![Version](https://img.shields.io/badge/version-2.0.15-blue)
16
16
  ![License](https://img.shields.io/badge/license-Apache--2.0-blue)
17
17
  ![Eleventy](https://img.shields.io/badge/11ty-v3.1.2-black)
18
18
 
package/bin/create.js CHANGED
@@ -75,7 +75,7 @@ const FRAMEWORKS = {
75
75
 
76
76
  const PROJECT_PACKAGE = {
77
77
  name: path.basename(targetDir),
78
- version: '2.0.14',
78
+ version: '2.0.15',
79
79
  private: true,
80
80
  scripts: {
81
81
  "build:css": "sass src/frontend/scss:out/css --no-source-map --style=compressed --quiet --load-path=node_modules",
@@ -27,6 +27,26 @@ See **Components** DOC file for more info
27
27
 
28
28
  The URL is the kebab-case name (`/my-page/`). The `title` in the front matter is camelCase (`myPage`) and is used internally to load the correct CSS and JS files — do not change it.
29
29
 
30
+ ## Subpages (nested URLs)
31
+
32
+ To create a URL like `domain.it/about/team`, edit the `permalink` in `src/frontend/_routes/team.njk` and add the parent segment before the final slash:
33
+
34
+ ```njk
35
+ ---
36
+ title: "team"
37
+ permalink: "about/team/"
38
+ layout: includes.njk
39
+ ---
40
+ ```
41
+
42
+ The parent path (`about`) does **not** need to exist as a real page — it's just a URL prefix. Only the last segment (`team`) must match the filename and the `title` in the front matter.
43
+
44
+ | Goal URL | permalink value | File |
45
+ |---|---|---|
46
+ | `/team/` | `/team/` | `_routes/team.njk` |
47
+ | `/about/team/` | `/about/team/` | `_routes/team.njk` |
48
+ | `/company/about/team/` | `/company/about/team/` | `_routes/team.njk` |
49
+
30
50
  ## SEO
31
51
 
32
52
  The CLI creates a stub entry in `src/frontend/data/site.json`. Fill it in:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-berna-stencil",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
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
  "author": "Michele Garofalo",