11ty / eleventy-plugin-webc

Adds support for WebC *.webc files to Eleventy
https://www.11ty.dev/docs/languages/webc/
119 stars 10 forks source link

String (non-dynamic) `permalink`s require extra quotes #47

Closed zachleat closed 1 year ago

zachleat commented 1 year ago

See https://github.com/11ty/eleventy-plugin-template-languages/issues/5 by @awmottaz

After 11ty/eleventy#27

I ran into this same issue using WebC. The following source file causes an error on build:

404.webc

---
permalink: 404.html
---

In the WebC case, the fix is either to "double quote" the value, like this:

---
permalink: "'404.html'"
---

Or disable template processing of the permalink:

---
permalink: 404.html
dynamicPermalink: false
---
zachleat commented 1 year ago

This was fixed in 11ty/eleventy#52 although note the dynamicPermalink issue still open in 11ty/eleventy#32