nibula 2.4.2 → 2.4.4
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/CHANGELOG.md +29 -0
- package/README.md +82 -53
- package/package.json +7 -7
- package/src/frontend/components/global/footer.njk +1 -1
- package/src/frontend/components/global/header.njk +1 -1
- package/src/frontend/components/welcome.njk +1 -2
- package/src/frontend/data/site.json +5 -2
- package/src/frontend/indexing/llms.njk +2 -2
- package/src/frontend/layouts/base.njk +5 -4
- package/src/frontend/scss/pages/404.scss +6 -21
- package/src/frontend/scss/pages/homepage.scss +1 -1
- package/tools/res/templates/template.scss +1 -1
- package/docs/Assistant CLI.md +0 -70
- package/docs/Backend.md +0 -219
- package/docs/Components.md +0 -236
- package/docs/Creating pages.md +0 -52
- package/docs/Deploy.md +0 -279
- package/docs/Head and SEO.md +0 -198
- package/docs/JavaScript.md +0 -127
- package/docs/Project structure.md +0 -66
- package/docs/Styling with SCSS.md +0 -147
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ All notable changes to Nibula are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.4.4] - 2026-08-26
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **`site_name` is now `siteName` and `author` is an object** with `fullName` and
|
|
12
|
+
`website`. The author's site feeds the JSON-LD `Person.url` and the `llms.txt`
|
|
13
|
+
header, which previously reused the site URL for both.
|
|
14
|
+
- The documentation moved out of the repository and onto
|
|
15
|
+
[rhaastrake.github.io/Nibula](https://rhaastrake.github.io/Nibula/docs/). The
|
|
16
|
+
`docs/` folder now holds the built site and is excluded from the published
|
|
17
|
+
package, so `npm install` no longer carries the Markdown files.
|
|
18
|
+
- The README follows the same structure as the documentation's introduction, and
|
|
19
|
+
points at the site instead of the files that used to live in `docs/`.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- The documentation card in `welcome.njk` linked to `Nibula/tree/main/docs`,
|
|
23
|
+
which now holds the built site rather than readable Markdown.
|
|
24
|
+
- `welcome.njk` shipped with a leftover `{{ test.prova }}` referencing a data
|
|
25
|
+
file no scaffolded project has.
|
|
26
|
+
|
|
27
|
+
### Notes
|
|
28
|
+
- **Existing projects need two edits to `src/frontend/data/site.json`** if you
|
|
29
|
+
update their templates: rename `site_name` to `siteName`, and turn `author`
|
|
30
|
+
into `{ "fullName": "...", "website": "..." }`. Leaving the file as it is keeps
|
|
31
|
+
the old templates working — the two only have to move together.
|
|
32
|
+
|
|
33
|
+
## [2.4.3] 2026-08-24
|
|
34
|
+
|
|
35
|
+
### Changes
|
|
36
|
+
- Minor changes in template files for new pages
|
|
8
37
|
|
|
9
38
|
## [2.4.2] 2026-08-24
|
|
10
39
|
|
package/README.md
CHANGED
|
@@ -4,52 +4,75 @@
|
|
|
4
4
|
[](LICENSE)
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
**Nibula** is an open source static site generator built on top of
|
|
7
|
+
**Nibula** is an open source static site generator built on top of
|
|
8
|
+
[Eleventy (11ty)](https://www.11ty.dev/), with one clear mission: make the jump
|
|
9
|
+
from small hand-written practice sites to a real project setup as gentle as
|
|
10
|
+
possible.
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
📖 **[Read the documentation](https://rhaastrake.github.io/nibula/docs/)**
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
## 🎯 Why choose Nibula
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
### Beginner friendly
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
If you've only ever written HTML, CSS and a bit of JavaScript, moving to a
|
|
19
|
+
framework usually feels like starting over. A new syntax, new rules, new folder
|
|
20
|
+
structures, and a pile of documentation to get through before you can even see a
|
|
21
|
+
page on screen.
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Nibula is designed to avoid exactly that. You stay close to the three languages
|
|
24
|
+
you already know, and the folder structure stays small enough to hold in your
|
|
25
|
+
head — a handful of folders whose names say what's inside, instead of a
|
|
26
|
+
convention you have to study before it makes sense.
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- 🎨 **Pick your CSS framework** — choose from 4 pre-installed options (or none), and switch later in a few guided steps
|
|
23
|
-
- 🔌 **Pick your backend** — Node.js or PHP, chosen at creation (choose carefully, based on where you plan to publish)
|
|
24
|
-
- 🧩 **Your own modules** — add your own SCSS and JS/TS modules freely and easily
|
|
25
|
-
- 🪶 **Lightweight by default** — SCSS frameworks can be filtered so you ship only what you actually use
|
|
28
|
+
Everything else is optional. Nunjucks adds loops and includes to your HTML,
|
|
29
|
+
Markdown files can carry the same logic, data files can feed a whole page — but
|
|
30
|
+
none of it is needed on day one.
|
|
26
31
|
|
|
27
|
-
###
|
|
32
|
+
### Ready to publish
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
The hard part of a first site usually isn't building it — it's everything that
|
|
35
|
+
comes after. Meta tags, a sitemap, a `robots.txt`, the server config your host
|
|
36
|
+
expects: four things nobody taught you, all at once, right when you thought you
|
|
37
|
+
were done.
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
Nibula writes them while you work. Fill in two data files and the SEO tags, the
|
|
40
|
+
sitemap and `llms.txt` build themselves from your pages. `.htaccess` and
|
|
41
|
+
`web.config` are already in the output folder, ready to upload, and an
|
|
42
|
+
`nginx.conf` is waiting if you have your own server.
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
### Nothing is hidden
|
|
35
45
|
|
|
36
|
-
|
|
46
|
+
Every one of those files lives in the project, in the folder you'd expect, in the
|
|
47
|
+
form you'd have written by hand. When you need to change something, you open it
|
|
48
|
+
and change it — there's no configuration layer to learn first, and no generated
|
|
49
|
+
code you're not supposed to touch.
|
|
37
50
|
|
|
38
|
-
|
|
51
|
+
### Backend included
|
|
39
52
|
|
|
40
|
-
|
|
53
|
+
At project creation you choose your backend: **Node.js or PHP**. Both expose the
|
|
54
|
+
same REST API — same routing, `X-Api-Key` auth, CORS and rate limiting — so a
|
|
55
|
+
contact form or a small API works on whatever hosting you end up with.
|
|
56
|
+
|
|
57
|
+
## 🤔 When not to use it
|
|
41
58
|
|
|
42
|
-
|
|
59
|
+
**Nibula builds static pages.** If your site needs users to log in, save
|
|
60
|
+
something, or see different content depending on who they are, you want a
|
|
61
|
+
framework with a server behind it — Next.js, Nuxt, Laravel.
|
|
43
62
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
63
|
+
**It doesn't scale to hundreds of pages** coming from a database or a CMS. The
|
|
64
|
+
assistant creates pages one at a time, which is right for a site with ten or
|
|
65
|
+
twenty of them and wrong for a catalogue.
|
|
47
66
|
|
|
48
|
-
|
|
67
|
+
**If you already work with React, Vue or Angular, stay there.** Nibula's whole
|
|
68
|
+
point is being a first step for people who don't.
|
|
69
|
+
|
|
70
|
+
## 📋 Prerequisites
|
|
49
71
|
|
|
50
|
-
|
|
72
|
+
- **Node.js** — v18.0.0 or higher
|
|
73
|
+
- **Composer** — latest version, only if you pick the PHP backend
|
|
51
74
|
|
|
52
|
-
##
|
|
75
|
+
## 🚀 Getting started
|
|
53
76
|
|
|
54
77
|
Install Nibula once, globally:
|
|
55
78
|
|
|
@@ -57,54 +80,60 @@ Install Nibula once, globally:
|
|
|
57
80
|
npm install -g nibula
|
|
58
81
|
```
|
|
59
82
|
|
|
60
|
-
This gives you the `nib` command
|
|
83
|
+
This gives you the `nib` command, with `nbl` and `nibula` as aliases.
|
|
61
84
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
From the folder where you keep your websites, run:
|
|
85
|
+
From the folder where you keep your websites:
|
|
65
86
|
|
|
66
87
|
```
|
|
67
88
|
nib new your-project
|
|
68
89
|
```
|
|
69
90
|
|
|
70
|
-
The scaffolder
|
|
71
|
-
|
|
72
|
-
|
|
91
|
+
The scaffolder asks you three things — the language, the CSS framework and the
|
|
92
|
+
backend — then installs everything for you. Move into the project and start the
|
|
93
|
+
dev server:
|
|
73
94
|
|
|
74
95
|
```
|
|
75
96
|
cd your-project
|
|
76
97
|
nib run
|
|
77
98
|
```
|
|
78
99
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Instead of creating and wiring up multiple files by hand, let the interactive assistant do it for you. To create, remove, or rename pages and configure the output path, run:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
nib cli
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
See [docs/Assistant CLI.md](docs/Assistant%20CLI.md) for details.
|
|
100
|
+
Your site is now at `localhost:8080`, and it rebuilds every time you save.
|
|
88
101
|
|
|
89
102
|
## 💻 Commands
|
|
90
103
|
|
|
91
|
-
Run these from anywhere inside a project — except `nib new`, which must be run
|
|
104
|
+
Run these from anywhere inside a project — except `nib new`, which must be run
|
|
105
|
+
**outside** a project, in the folder where you want the new one created.
|
|
92
106
|
|
|
93
107
|
| Command | Description |
|
|
94
108
|
|---|---|
|
|
95
|
-
| `nib new <name>` | Create
|
|
96
|
-
| `nib run` | Start the dev server and
|
|
109
|
+
| `nib new <name>` | Create a new project |
|
|
110
|
+
| `nib run` | Start the dev server and rebuild as you save |
|
|
97
111
|
| `nib cli` | Open the page-management assistant |
|
|
98
112
|
| `nib build` | Build the output folder |
|
|
99
113
|
| `nib clean` | Remove the output directory |
|
|
100
|
-
| `nib update` | Update Nibula
|
|
114
|
+
| `nib update` | Update Nibula (applies from your next project on) |
|
|
115
|
+
|
|
116
|
+
Creating a page by hand means writing three files and a data record that all have
|
|
117
|
+
to agree on the name. `nib cli` does it for you, and handles renaming and
|
|
118
|
+
removing too.
|
|
119
|
+
|
|
120
|
+
## 📖 Documentation
|
|
121
|
+
|
|
122
|
+
Everything else — the page structure, components, styling, the backend, SEO and
|
|
123
|
+
deployment — is at
|
|
124
|
+
**[rhaastrake.github.io/Nibula](https://rhaastrake.github.io/nibula/docs/)**.
|
|
101
125
|
|
|
102
|
-
##
|
|
126
|
+
## ⭐ Support Nibula
|
|
103
127
|
|
|
104
|
-
Thanks for giving Nibula a try.
|
|
128
|
+
Thanks for giving **Nibula** a try.
|
|
105
129
|
|
|
106
|
-
It's a one-person project, so every bit of feedback counts more than you'd think:
|
|
130
|
+
It's a one-person project, so every bit of feedback counts more than you'd think:
|
|
131
|
+
if something breaks, if the documentation isn't clear, or if a feature is
|
|
132
|
+
missing, open an [issue](https://github.com/Rhaastrake/nibula/issues).
|
|
107
133
|
|
|
108
|
-
If Nibula was useful to you, leaving a ⭐ on the
|
|
134
|
+
If **Nibula** was useful to you, leaving a ⭐ on the
|
|
135
|
+
[repository](https://github.com/Rhaastrake/nibula) is the easiest way to help
|
|
136
|
+
other people find it.
|
|
109
137
|
|
|
110
|
-
You can support the project by
|
|
138
|
+
You can also support the project by buying me a coffee on
|
|
139
|
+
[PayPal](https://paypal.me/rhaastrake) ☕🫡
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nibula",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "A beginner-friendly static site generator built on Eleventy that stays close to vanilla HTML, CSS and JS — with a page-management CLI, an optional PHP backend, and SEO files generated for you.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"11ty",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"assistant": "node tools/assistant.js"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@11ty/eleventy": "^3.1.
|
|
58
|
-
"@11ty/eleventy-img": "^
|
|
57
|
+
"@11ty/eleventy": "^3.1.6",
|
|
58
|
+
"@11ty/eleventy-img": "^7.0.0",
|
|
59
59
|
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.2",
|
|
60
60
|
"bootstrap": "^5.3.8",
|
|
61
61
|
"bootstrap-icons": "^1.13.1",
|
|
62
62
|
"bulma": "^1.0.4",
|
|
63
|
-
"concurrently": "^9.2.
|
|
64
|
-
"esbuild": "^0.
|
|
63
|
+
"concurrently": "^9.2.4",
|
|
64
|
+
"esbuild": "^0.28.2",
|
|
65
65
|
"foundation-sites": "^6.9.0",
|
|
66
66
|
"glob": "^13.0.6",
|
|
67
67
|
"markdown-it-anchor": "^9.2.1",
|
|
68
68
|
"markdown-it-attrs": "^5.0.1",
|
|
69
|
-
"sass": "^1.
|
|
70
|
-
"uikit": "^3.25.
|
|
69
|
+
"sass": "^1.103.1",
|
|
70
|
+
"uikit": "^3.25.21"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<div class="copyright">
|
|
18
18
|
<p>
|
|
19
|
-
© {{ site.legal.copyright.year }} {{ site.
|
|
19
|
+
© {{ site.legal.copyright.year }} {{ site.siteName }} - {{ site.legal.copyright.text }}
|
|
20
20
|
</p>
|
|
21
21
|
</div>
|
|
22
22
|
</footer>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</svg>
|
|
17
17
|
</span>
|
|
18
18
|
</a>
|
|
19
|
-
<a href="https://github.
|
|
19
|
+
<a href="https://rhaastrake.github.io/nibula/docs/" class="card" target="_blank" rel="noopener noreferrer" style="flex: 1; min-width: 250px;">
|
|
20
20
|
<svg class="card-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
21
21
|
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
|
|
22
22
|
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
</a>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
<div class="prova">{{ test.prova }}</div>
|
|
35
34
|
<style>
|
|
36
35
|
.layout-container {
|
|
37
36
|
width: 100%;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"siteName": "Site name",
|
|
3
3
|
"title": "Site title",
|
|
4
4
|
"description": "Site description",
|
|
5
5
|
"keywords": "keyword1, keyword2, keyword3",
|
|
6
6
|
"domain": "yoursite.com",
|
|
7
7
|
"url": "https://yoursite.com",
|
|
8
8
|
"lang": "en",
|
|
9
|
-
"author":
|
|
9
|
+
"author": {
|
|
10
|
+
"fullName": "Name and surname",
|
|
11
|
+
"website": "https://example.com"
|
|
12
|
+
},
|
|
10
13
|
"theme": "dark",
|
|
11
14
|
"logo": "/assets/brand/logo.svg",
|
|
12
15
|
"legal": {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
permalink: /llms.txt
|
|
3
3
|
eleventyExcludeFromCollections: true
|
|
4
4
|
---
|
|
5
|
-
# {{ site.
|
|
5
|
+
# {{ site.siteName }}
|
|
6
6
|
|
|
7
7
|
> {{ site.description }}
|
|
8
8
|
|
|
9
|
-
Built by {{ site.author }} — {{ site.
|
|
9
|
+
Built by {{ site.author.fullName }} — {{ site.author.website }}
|
|
10
10
|
|
|
11
11
|
## Pages
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<title>{{ pageData.seo.title or title or site.title }}</title>
|
|
24
24
|
<meta name="description" content="{{ pageData.seo.description or site.description }}">
|
|
25
25
|
<meta name="keywords" content="{{ pageData.seo.keywords or site.keywords }}">
|
|
26
|
-
<meta name="author" content="{{ site.author }}">
|
|
26
|
+
<meta name="author" content="{{ site.author.fullName }}">
|
|
27
27
|
<meta name="theme-color" content="{{ site.theme }}">
|
|
28
28
|
|
|
29
29
|
{% if pageData.seo.noindex %}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<meta property="og:type" content="website">
|
|
37
37
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
|
38
38
|
<meta property="og:image" content="{{ site.url }}{{ site.logo }}">
|
|
39
|
-
<meta property="og:site_name" content="{{ site.
|
|
39
|
+
<meta property="og:site_name" content="{{ site.siteName }}">
|
|
40
40
|
|
|
41
41
|
{# Twitter Card #}
|
|
42
42
|
<meta name="twitter:card" content="summary_large_image">
|
|
@@ -57,11 +57,12 @@
|
|
|
57
57
|
"url": {{ (site.url + page.url) | dump }},
|
|
58
58
|
"author": {
|
|
59
59
|
"@type": "Person",
|
|
60
|
-
"name": {{ site.author | dump }}
|
|
60
|
+
"name": {{ site.author.fullName | dump }},
|
|
61
|
+
"url": {{ site.author.website | dump }}
|
|
61
62
|
},
|
|
62
63
|
"publisher": {
|
|
63
64
|
"@type": "Organization",
|
|
64
|
-
"name": {{ site.
|
|
65
|
+
"name": {{ site.siteName | dump }},
|
|
65
66
|
"logo": {
|
|
66
67
|
"@type": "ImageObject",
|
|
67
68
|
"url": {{ (site.url + site.logo) | dump }}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
//
|
|
3
|
-
//==========================
|
|
4
|
-
|
|
5
|
-
// Use @use with a namespace to avoid framework variable conflicts:
|
|
6
|
-
// Example: root.$primary
|
|
7
|
-
@use "../root" as root;
|
|
1
|
+
// Getting root rules from _root.scss
|
|
2
|
+
@use "../root" as root; // Usage: root.$value-name
|
|
8
3
|
|
|
9
4
|
// This global module contains the import framework, necessary modules for each page and any other common styles
|
|
10
5
|
@import "../global";
|
|
@@ -12,17 +7,7 @@
|
|
|
12
7
|
// Import any other module you need by import down here
|
|
13
8
|
// @import "../modules/moduleName";
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// Add any custom rule specific to this page below
|
|
20
|
-
// These rules override the framework and module styles
|
|
21
|
-
.not-found {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
min-height: 60vh;
|
|
27
|
-
text-align: center;
|
|
28
|
-
}
|
|
10
|
+
// Add any custom rule specific to this page below:
|
|
11
|
+
// body {
|
|
12
|
+
// background-color: root.$custom-color;
|
|
13
|
+
// }
|
package/docs/Assistant CLI.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Assistant CLI
|
|
2
|
-
|
|
3
|
-
> Examples use JavaScript, but everything applies equally to TypeScript. The only difference is the file extension (`.ts` instead of `.js`), that imports do **not** include the extension, and that paths use `src/frontend/ts/` instead of `src/frontend/js/`.
|
|
4
|
-
|
|
5
|
-
An interactive CLI to manage pages without touching files manually.
|
|
6
|
-
|
|
7
|
-
Run it from anywhere inside a project:
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
nib cli
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Menu
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
1. Create page
|
|
17
|
-
2. Remove page
|
|
18
|
-
3. Rename page
|
|
19
|
-
4. Configure output path
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Use `CTRL/CMD + C` (or `CTRL + D`) to exit.
|
|
23
|
-
|
|
24
|
-
## Create page
|
|
25
|
-
|
|
26
|
-
Enter a page name in any format — the CLI converts it to kebab-case automatically.
|
|
27
|
-
|
|
28
|
-
For a page named `my-page`, the following files are created:
|
|
29
|
-
|
|
30
|
-
| File | Purpose |
|
|
31
|
-
|---|---|
|
|
32
|
-
| `src/frontend/scss/pages/myPage.scss` | SCSS entry point |
|
|
33
|
-
| `src/frontend/js/pages/myPage.js` | JS entry point |
|
|
34
|
-
| `src/frontend/routes/my-page.njk` | Nunjucks template |
|
|
35
|
-
|
|
36
|
-
It also adds a stub entry in `pages.json`:
|
|
37
|
-
|
|
38
|
-
```json
|
|
39
|
-
"myPage": {
|
|
40
|
-
"seo": {
|
|
41
|
-
"title": "My page",
|
|
42
|
-
"description": "Description",
|
|
43
|
-
"keywords": "",
|
|
44
|
-
"noindex": false,
|
|
45
|
-
"canonical": ""
|
|
46
|
-
},
|
|
47
|
-
"cdn": {
|
|
48
|
-
"css": [],
|
|
49
|
-
"js": []
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
The route is created with an empty body and a commented example — you decide which components go in it. See **Components** DOC file.
|
|
55
|
-
|
|
56
|
-
## Remove page
|
|
57
|
-
|
|
58
|
-
Deletes all source files for the page, cleans up the output directory, and removes the record from `pages.json`.
|
|
59
|
-
|
|
60
|
-
## Rename page
|
|
61
|
-
|
|
62
|
-
Renames all three source files, updates the `permalink` in the route's front matter, and renames the record in `pages.json`. Nothing inside the record is touched — your SEO title, description and CDN links stay exactly as you wrote them.
|
|
63
|
-
|
|
64
|
-
The includes you wrote inside the route move with the file, since the route itself is renamed rather than rewritten.
|
|
65
|
-
|
|
66
|
-
## Configure output path
|
|
67
|
-
|
|
68
|
-
Updates the output directory across `.eleventy.js` and all relevant `package.json` scripts in one shot. The old output folder is deleted automatically.
|
|
69
|
-
|
|
70
|
-
> ⚠️ `homepage` and `404` are protected — they cannot be created, removed, or renamed via the CLI.
|