From 5f6a1a8d338d334673e24ca363b3384fe6d57a1a Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:54:59 -0800 Subject: [PATCH] fix: path manipulation should always use posix --- config/collections/index.js | 2 +- src/_data/fonts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/collections/index.js b/config/collections/index.js index 5702324..5d34d05 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -1,4 +1,4 @@ -const path = require("path"); +const path = require("path").posix; const { dir } = require("../constants.js"); const getAllPosts = (collection) => { diff --git a/src/_data/fonts.js b/src/_data/fonts.js index 86b1ed2..1bde92d 100644 --- a/src/_data/fonts.js +++ b/src/_data/fonts.js @@ -4,7 +4,7 @@ * See more here: https://www.aleksandrhovhannisyan.com/blog/configuring-web-fonts-in-11ty-with-global-data/ */ -const path = require("path"); +const path = require("path").posix; const FONT_STYLE = { NORMAL: "normal",