Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Allows overwriting things without complaining #97

Open
edunham opened this issue Jan 24, 2013 · 1 comment
Open

Allows overwriting things without complaining #97

edunham opened this issue Jan 24, 2013 · 1 comment

Comments

@edunham
Copy link
Collaborator

edunham commented Jan 24, 2013

13:11 < mythmon> the slug variable on content pages needs to be unique.
13:12 < mythmon> so you are confusing wok and it is overwriting pages on disk.
13:12 < edunham> it didn't yell at me when it got confused, though

@dsoulayrol
Copy link
Contributor

I wanted to create an issue related to the same subject. It is quite easy, when the site grows, to have two identical slugs, in different categories perhaps. This is not a problem anywhere but in the slugs dictionnary.

If slugs must be unique, a warning should be written when a key is overriden during the slugs dictionnary build, the way orphans are already detected. And it should be written with a big and red font in documentation. :)

But perhaps the pages could be stored with a diffrent key, like their URL, their path, or a tuple with their slug and category?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants