Relative url #2516
Replies: 2 comments
-
I don't think there is an easy way to make links relative. There was a previous discussion in #2099 but that ended up being very specific to a project and felt a bit complex. Generally I just use
You can also set the module.exports = function(eleventyConfig) {
return {
pathPrefix: "/eleventy-base-blog/"
}
}; |
Beta Was this translation helpful? Give feedback.
-
I know this thread is old, but I was having the same issue, so dropping this here in case anybody stumbles on it, like me. Assuming my problem is the same as @koteswar-rao's, adding the Relative links in the source folder (eg I don't fully understand why, but adding that I haven't tested this on a live site yet. |
Beta Was this translation helpful? Give feedback.
-
How to make URL's be relative in 11ty?
Beta Was this translation helpful? Give feedback.
All reactions