Skip to content

Commit

Permalink
fix(docs): barbecue segment_path active variant
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHcodes committed May 12, 2024
1 parent b3d3ce6 commit f54ddb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/barbecue.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn page_segments(page: Pages) -> List(String) {
}

fn segment_path(page: Pages, at: Int) -> String {
"/" <> string.join(list.split(page_segments(page), at + 1).0, "/")
"/" <> string.join(list.split(page_segments(page), at + 1).0, "/") <> "/"
}

pub fn barbecue(page: Pages) -> Element(a) {
Expand Down

0 comments on commit f54ddb5

Please sign in to comment.