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
Does not work permalink with interpolation of Pug. #1899
Comments
Sorry, I’ve never used Pug before, but why are you setting the |
I think in this instance you want dynamic permalinks. Try removing that and see if it helps |
Thanks. I tried remove
|
Do you have a public repo I can try cloning and testing locally? |
Yes, I have already create public repos. |
Thank you for waiting. https://github.com/ksmxxxxxx/docs.ksmxxxxxx.page/tree/try_permalink |
Odd. I just can't figure out how to get this to work. |
One possible quick workaround is to use a data directory file ./_sources/blog/blog.json which sets the {
"permalink": "{{ page.filePathStem }}.html"
} |
Thanks :) |
It should work because it’s a directory data file and uses liquidjs templating by default, I believe. There might be a way to change it to use Pug, I haven’t tried that before, so it could be a learning exercise for both of us (if you want to keep everything in Pug). |
Thanks, I get it worked. However, just changing the data directory file didn't work, so I reviewed the contents of .eleventy.js. @@ -30,7 +30,6 @@ module.exports = function (eleventyConfig) {
dir: {
input: '_sources',
data: '_data'
- },
- markdownTemplateEngine: 'md'
+ }
} |
Should I close this issue? |
|
Hi there.
Thanks for develop 11ty.
I’m using very fun.
Describe the bug
I am using Pug. However, the permalinks do not work.
It looks like interpolation is being escaped or recognized as a string.
To Reproduce
I'm write to frontmatter like this.
When I set it up like this, I get the following error
I am having trouble deciding if this is a misconfiguration on my part or if it is a problem with the specification.
Expected behavior
I would like it to be written as follows.
Environment:
eleventy --version
ornpx @11ty/eleventy --version
]My english is not good 😅 , I would be happy to get some advice.
The text was updated successfully, but these errors were encountered: