diff --git a/CHANGELOG.md b/CHANGELOG.md index f835a6f1..cbfe94ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project try to adheres to [Semantic Versioning](https://semver.org/). Go to the `v1` branch to see the changelog of Lume 1. +## [2.3.2] - 2024-09-10 +### Fixed +- Nav plugin: include `slug` in the `toJSON` export. + ## [2.3.1] - 2024-09-09 ### Added - New option `watcher.include` to add extra external paths to the watcher. @@ -524,6 +528,7 @@ Go to the `v1` branch to see the changelog of Lume 1. [#655]: https://github.com/lumeland/lume/issues/655 [#662]: https://github.com/lumeland/lume/issues/662 +[2.3.2]: https://github.com/lumeland/lume/compare/v2.3.1...v2.3.2 [2.3.1]: https://github.com/lumeland/lume/compare/v2.3.0...v2.3.1 [2.3.0]: https://github.com/lumeland/lume/compare/v2.2.4...v2.3.0 [2.2.4]: https://github.com/lumeland/lume/compare/v2.2.3...v2.2.4 diff --git a/plugins/nav.ts b/plugins/nav.ts index ef9f0fc9..d986e374 100644 --- a/plugins/nav.ts +++ b/plugins/nav.ts @@ -195,6 +195,7 @@ export interface NavData { } export interface NavJSON { + slug: string; data: { title?: string; url?: string; @@ -293,6 +294,7 @@ function convert( parent, toJSON() { return { + slug: this.slug, data: { title: this.data.title, url: this.data.url,