-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Permalink path being encoded #5
Comments
Thanks for reporting. I can reproduce this with any permalink. I'll look into it a bit. |
According to 11ty/eleventy#539 (comment), you need to enclose the value in quotes and prefix it with a pipe "|" character. The reason is that pug is trying to compile it as code. It's still not expected behavior. |
I ran into this same issue using WebC. The following source file causes an error on build:
In the WebC case, the fix is either to "double quote" the value, like this:
Or disable template processing of the permalink:
|
@awmottaz I filed that separate WebC issue at 11ty/eleventy-plugin-webc#47 Thanks! Alternatively the pug issue is still present in 2.0. Workaround is to use |
Having the same issue using pagination and custom data. For now it's easy enough to just use njk for front matter files and pug for the rest :) My file
|
Describe the bug
If I set the permalink for a page (in any way) the output contains what looks like HTML.
For example, if I set the following on my
src/404.pug
:The following gets written:
To Reproduce
Steps to reproduce the behavior:
templateFormats
to['pug']
Expected behavior
Expecting the following:
Environment:
Using version 0.11.0 on mac
The text was updated successfully, but these errors were encountered: