nibula 2.2.0 → 2.2.1
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 +15 -0
- package/package.json +1 -1
- package/tools/lib/pageActions.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.2.1] - 2026-08-18
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Renaming a page left the old `title` in the route's front matter. Only
|
|
12
|
+
`permalink` was rewritten, so a page renamed from `about` to `company` kept
|
|
13
|
+
`title: "about"` while its stylesheet, script and `pages.json` record had all
|
|
14
|
+
moved to `company`. The title is what the layout uses to load a page's CSS and
|
|
15
|
+
JS and to look up its SEO record, so the renamed page silently lost its styles,
|
|
16
|
+
its scripts and everything set under its `pages.json` entry.
|
|
17
|
+
|
|
18
|
+
### Notes
|
|
19
|
+
- Pages renamed with an earlier version keep the stale title. Open the route in
|
|
20
|
+
`src/frontend/routes/` and set `title` to the camelCase form of the new page
|
|
21
|
+
name — `company-profile` becomes `companyProfile`.
|
|
22
|
+
|
|
8
23
|
## [2.2.0] - 2026-08-18
|
|
9
24
|
|
|
10
25
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nibula",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
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",
|
package/tools/lib/pageActions.js
CHANGED
|
@@ -15,7 +15,7 @@ const FRONT_MATTER_PATTERNS = Object.freeze({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const ROUTE_FRONT_MATTER_KEYS = ['title', 'permalink'];
|
|
18
|
-
const RENAME_FRONT_MATTER_KEYS = ['permalink'];
|
|
18
|
+
const RENAME_FRONT_MATTER_KEYS = ['title', 'permalink'];
|
|
19
19
|
const LAYOUT_KEY = 'layout';
|
|
20
20
|
|
|
21
21
|
function templatePath(name) {
|