Skip to content

Comments

Don't decamelize when slugifying#2

Merged
rphillips-cc merged 1 commit intomainfrom
de-decamelize
May 8, 2023
Merged

Don't decamelize when slugifying#2
rphillips-cc merged 1 commit intomainfrom
de-decamelize

Conversation

@bglw
Copy link
Contributor

@bglw bglw commented May 8, 2023

Currently CloudCannon's internal slugify functionality does not decamelize, while reader does:

title = "My FooBar Page";

// CloudCannon page title, upload paths, etc
"{title|slugify}" => "my-foobar-page"

// Reader
"{title|slugify}" => "my-foo-bar-page"

This PR sets decamelize to false for our slugify functionality to match the platform behaviour.

@rphillips-cc rphillips-cc merged commit 1c95229 into main May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants