kopia lustrzana https://github.com/shoelace-style/shoelace
fix urls when build on win
rodzic
5085ef831b
commit
82cc778a0f
|
@ -161,7 +161,7 @@ module.exports = function (eleventyConfig) {
|
||||||
this.field('c'); // content
|
this.field('c'); // content
|
||||||
|
|
||||||
results.forEach((result, index) => {
|
results.forEach((result, index) => {
|
||||||
const url = path.join('/', path.relative(eleventyConfig.dir.output, result.outputPath));
|
const url = path.join('/', path.relative(eleventyConfig.dir.output, result.outputPath)).replace(/\\/g, '/');
|
||||||
const doc = new JSDOM(result.content, {
|
const doc = new JSDOM(result.content, {
|
||||||
// We must set a default URL so links are parsed with a hostname. Let's use a bogus TLD so we can easily
|
// We must set a default URL so links are parsed with a hostname. Let's use a bogus TLD so we can easily
|
||||||
// identify which ones are internal and which ones are external.
|
// identify which ones are internal and which ones are external.
|
||||||
|
|
Ładowanie…
Reference in New Issue