Replies: 1 comment 1 reply
-
|
From my understanding, (could be wrong) it will take the baseHref value (example.com) and put that in front of whatever you return in the pathprefix at the bottom of the eleventy.js. Just for comparison, I tried this: eleventyConfig.addPlugin(EleventyHtmlBasePlugin, {
baseHref: 'http://example.com'
});And everything was like The /abc/ was ignored. So it must be only interested in the domain part, and the pathPrefix that you return, in your case you should probably set pathPrefix="/extra/folders"? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I set such url in the .eleventy.js config:
baseHref: "http://example.com/extra/folders/"the result is the
/extra/folders/part is ignored. So for example:<link rel="stylesheet" href="/style.css">becomes:
<link rel="stylesheet" href="http://example.com/style.css">and not:
<link rel="stylesheet" href="http://example.com/extra/folders/style.css">as expected.
Is it a bug or a feature?
Beta Was this translation helpful? Give feedback.
All reactions