Skip to content

Commit

Permalink
changes for Lume 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 15, 2024
1 parent bbcd26e commit e8da473
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/_includes/templates/menu_item.vto
Original file line number Diff line number Diff line change
@@ -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 }}<details{{ expanded ? " open" : "" }}><summary>{{ /if }}
{{ if item.data }}
{{ if item.data.url }}
<a {{ if item.data.url == url }}aria-current="page"{{ /if }} href="{{ item.data.url }}">
{{ if item.children }}{{ /if }}
{{ item.data.title || item.slug }}
{{ item.data.title || item.data.basename }}
</a>
{{ else }}
<strong>{{ item.slug }}</strong>
<strong>{{ item.data.basename }}</strong>
{{ /if }}

{{ if expandable }}</summary>{{ /if }}
Expand Down

0 comments on commit e8da473

Please sign in to comment.