-
-
Notifications
You must be signed in to change notification settings - Fork 805
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi. Cool template! I'm about to start my technical blog and I'm writing an article about E2E testing. I would like to add "E2E testing" tag, but the generated URL path becomes: e-2-e-testing
To Reproduce
Steps to reproduce the behavior:
- Create new or edit existing blog post, add the following tag:
tags:
- E2E testing- Go to
/tags - Click on "E2E testing"
- You will see
/e-2-e-testingin URL
Expected behavior
I would expected to see e2e-testing in URL. I've tried to create the same tag using AstroWind template and got expected URL. AstroWind is using limax package.
Additional context
lodash.kebabcase is probably not the right tool to slugify tags:
astro-paper/src/utils/slugify.ts
Lines 1 to 3 in aad5ac6
| import kebabcase from "lodash.kebabcase"; | |
| export const slugifyStr = (str: string) => kebabcase(str); |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working