-
I'm automatically generating tag pages for all of my tags. One of my tags contains an apostrophe. The URL generated is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think nunjucks is the reason I was struggling. I made two similar templates:
module.exports = {
data() {
return {
customKey: "test's2",
permalink: data => `/${data.customKey}/`
}
},
render(data) {
return `
<h1>test2</h1>
`;
}
} The njk template generated |
Beta Was this translation helpful? Give feedback.
-
I think you'd want to use the |
Beta Was this translation helpful? Give feedback.
I think nunjucks is the reason I was struggling. I made two similar templates:
test's.njk
test's2.11ty.js
The njk template generated
test's
. The 11ty.js template generatedtest's2