diff --git a/CHANGELOG.md b/CHANGELOG.md index b47b32b..575ad46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.10.0] - Unreleased +### Changed +- Addapt to a BREAKING CHANGE introduced in Lume 1.3. + ## [0.9.3] - 2024-08-12 ### Added - Settings to CMS to configure a default extra_head and language. @@ -142,6 +146,7 @@ First version [#8]: https://github.com/lumeland/theme-simple-wiki/issues/8 [#9]: https://github.com/lumeland/theme-simple-wiki/issues/9 +[0.10.0]: https://github.com/lumeland/theme-simple-wiki/compare/v0.9.3...HEAD [0.9.3]: https://github.com/lumeland/theme-simple-wiki/compare/v0.9.2...v0.9.3 [0.9.2]: https://github.com/lumeland/theme-simple-wiki/compare/v0.9.1...v0.9.2 [0.9.1]: https://github.com/lumeland/theme-simple-wiki/compare/v0.9.0...v0.9.1 diff --git a/src/_includes/templates/menu_item.vto b/src/_includes/templates/menu_item.vto index 53ee157..68bf563 100644 --- a/src/_includes/templates/menu_item.vto +++ b/src/_includes/templates/menu_item.vto @@ -1,16 +1,16 @@ {{ set expandable = !!item.children }} -{{> let urlPrefix = `${prefix ?? "/" }${item.slug}/` }} +{{> let urlPrefix = `${prefix ?? "/" }${item.data.basename}/` }} {{ set expanded = expandable ? url.startsWith(urlPrefix) : false }} {{ if expandable }}{{ /if }} -{{ if item.data }} +{{ if item.data.url }} {{ if item.children }}{{ /if }} - {{ item.data.title || item.slug }} + {{ item.data.title || item.data.basename }} {{ else }} - {{ item.slug }} + {{ item.data.basename }} {{ /if }} {{ if expandable }}{{ /if }}