mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
bf210f7841
* feat: slugify slug to handle capitals and spaces * docs: add not on Slugger issues * deps: bump to github-slugger 2.0 * refactor: new Slugger() -> slug util * fix: stop using URL.pathname * fix: `file://` prefix on isContentFlagImport * test: spaces in fixture file name * chore: add `test:unit:match` * refactor: handle collection errors from getEntryInfo * test: unit getEntryInfo * chore: changeset * chore: markdown-remark out of date * fix: correctly strip index on windows * fix: move to utils, fix slug regex * refactor: intermediate var * lint: `path` variable shadowing * chore: add not on allowFilesOutsideCollection
398 B
398 B
astro |
---|
minor |
Correctly handle spaces and capitalization in src/content/
file names. This introduces github-slugger for slug generation to ensure slugs are usable by getStaticPaths
. Changes:
- Resolve spaces and capitalization:
collection/Entry With Spaces.md
becomescollection/entry-with-spaces
. - Truncate
/index
paths to base URL:collection/index.md
becomescollection