Skip to content

Commit

Permalink
Compatibility again
Browse files Browse the repository at this point in the history
  • Loading branch information
panglesd authored and jonludlam committed Oct 4, 2024
1 parent d110fc3 commit bc08c07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/sidebar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ type page = Id.Page.t
type leaf_page = Id.LeafPage.t
type container_page = Id.ContainerPage.t

open Astring

module PageToc = struct
type title = Comment.link_content

Expand All @@ -34,7 +36,7 @@ module PageToc = struct
let leafs (_, dir_content) =
LPH.fold
(fun id { title = payload; _ } acc ->
if Astring.String.equal "index" (Paths.Identifier.name id) then acc
if String.equal "index" (Paths.Identifier.name id) then acc
else (id, payload) :: acc)
dir_content.leafs []

Expand Down

0 comments on commit bc08c07

Please sign in to comment.