Eleventy: false permalinks: v0.9.0-beta.1 wants distinct values to resolve conflict

Created on 30 Jul 2019  Â·  2Comments  Â·  Source: 11ty/eleventy

Describe the bug
I have folder whose contents I don’t want written to disk, so set the permalink value to false in the folder data file:

{
  "permalink": false,
  "tags": ["testimonial"],
  "vocab": "review"
}

Eleventy build fails with DuplicatePermalinkOutputError.

Environment:

  • OS and Version: macOS 10.14.6
  • Eleventy Version: 0.9.0-beta.1

Additional context
0.9.0-beta.1 doesn’t like this!

Problem writing Eleventy templates: (more in DEBUG output)
> Output conflict: multiple input files are writing to `false`. Use distinct `permalink` values to resolve this conflict.
  1. ./src/_content/testimonials/emma_begg.md
  2. ./src/_content/testimonials/richard_rutter.md

`DuplicatePermalinkOutputError` was thrown:
    (Repeated output has been truncated…)
        at TemplateMap.checkForDuplicatePermalinks (/Users/paulrobertlloyd/Sites/paulrobertlloyd-v4/node_modules/@11ty/eleventy/src/TemplateMap.js:535:13)
        at TemplateMap.cache (/Users/paulrobertlloyd/Sites/paulrobertlloyd-v4/node_modules/@11ty/eleventy/src/TemplateMap.js:310:10)
        at async TemplateWriter._createTemplateMap (/Users/paulrobertlloyd/Sites/paulrobertlloyd-v4/node_modules/@11ty/eleventy/src/TemplateWriter.js:124:3)
        at async TemplateWriter.write (/Users/paulrobertlloyd/Sites/paulrobertlloyd-v4/node_modules/@11ty/eleventy/src/TemplateWriter.js:155:3)
        at async Eleventy.write (/Users/paulrobertlloyd/Sites/paulrobertlloyd-v4/node_modules/@11ty/eleventy/src/Eleventy.js:423:13)
bug high-priority

Most helpful comment

I’ll push another beta here after I triage a few more issues but this is fixed and will go out with 0.9.0

All 2 comments

Ugh wow, yep. Sorry about that!

I’ll push another beta here after I triage a few more issues but this is fixed and will go out with 0.9.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AjitZero picture AjitZero  Â·  3Comments

jamrelian picture jamrelian  Â·  3Comments

zac-heisey picture zac-heisey  Â·  3Comments

zachleat picture zachleat  Â·  3Comments

smaimon picture smaimon  Â·  3Comments