Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing of '/' character #40

Closed
naveensky opened this issue Dec 17, 2019 · 1 comment
Closed

Removing of '/' character #40

naveensky opened this issue Dec 17, 2019 · 1 comment

Comments

@naveensky
Copy link

Hi,

Does the library remove / character from the path? I want to move certain pages as a sub-directory of main path, like integrations/abc and then have an original integrations page as well.

Is it possible with slufigy?

@TiagoDanin
Copy link
Contributor

Slug convert a string into a valid URL identifier.

const string = 'abc/d&f/ghi#home@user/' 
const output = string.split('/').map(slugify).join('/')

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

No branches or pull requests

3 participants