-
Is it possible to remove certain parts of the permalink 'path' for all pages? For example, all my Markdown files are in a I know how to change the permalink for single pages, but I want to change that for every page inside the Naïvely, I tried using a data file If I use a module.exports = {
layout: "markdown",
eleventyComputed: {
permalink: (data) => data.page.url.replace("/content", ""),
},
}; I get a Is that something that should work and I am doing something wrong, or is that currently not supported? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok, well: |
Beta Was this translation helpful? Give feedback.
Ok, well:
{{ page.filePathStem | replace('/content', '') | url }}
seemed to have done the trick. Sorry for the spam.