Skip to content

Commit

Permalink
Transform back-slashes to slashes in generated URLs (google#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce authored Dec 30, 2020
1 parent 2e4b71a commit 88987af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _11ty/img-dim.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ const processImage = async (img, outputPath) => {
src =
"/" +
path.relative("./_site/", path.resolve(path.dirname(outputPath), src));
if (path.sep == "\\") {
src = src.replace(/\\/g, "/");
}
}
let dimensions;
try {
Expand Down

0 comments on commit 88987af

Please sign in to comment.