-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
Duplicate permalink outputs nothing #322
Comments
Yup, I'm getting the same behavior. I only end up with one file in the build folder, and its contents aren't compiled correctly. Seems to be overwritten by the second post but it's jumbled up. https://github.com/jevets/eleventy-issue-322 (For now, I'd probably workaround using a |
I don't know if I'd expect automatic adding of a numeric suffix (which post goes in which order? does eleventy guarantee template render order?), but it would seem sensible to warn when trying to render a page that has already been rendered. |
A ha! Yes, I agree that a warning (maybe even an error?) is in order here. |
We’re going to go with a warning for now and I filed #562 to talk about changing it to an error in the next major version. |
Hmm, I think I’m changing my mind on this error behavior. Right now you could get very unpredictable results when you use two permalinks that point to the same output file. I’m leaning towards using a full error for this and failing the build. |
Follow along at #562. |
Using v6.0.0 I'm setting a default permalink structure for my posts in a directory JSON data file like so:-
Which, as expected outputs a post with the following permalink:-
/12-01-2019-my-cool-post
However, when I create a new post with an identical title and date to an existing post, it outputs nothing, and does not output an error.
Expected behaviour would be that Eleventy adds a numeric suffix to the duplicate permalink e.g.
/12-01-2019-my-cool-post-1
or that it throws an error.
Could someone try creating a duplicate permalink (using frontmatter data or otherwise) to see what happens?
The text was updated successfully, but these errors were encountered: