Duplicate output posts - nu-dev/nu GitHub Wiki

Duplicate output posts

Problem

nu will automatically remove non-websafe characters from a post's input filename and replace them with -.

Here's a list of characters that are removed:

  • #
  • /
  • !
  • '
  • "
  • \
  • ?

If the end result of the replacing between two files ends up with the same end result filename, nu will not build the website.

Here's an example:

  • Input file #1: 2015-05-10-Test post 1.md -> 2015-05-10-Test-post-1.md
  • Input file #2: 2015-05-10-Test#post?1.md -> 2015-05-10-Test-post-1.md

The two will both end up as 2015-05-10-Test-post-1.md, so nu will detect this and bail out with an error message.

Fixing the error

To fix this error, just make sure that the posts won't end up having the same name in the output.