mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
Merge pull request #357 from dfireBird/fix-214
Change `path.join` to `path.posix.join` ensuring path uses `/` not `\`
This commit is contained in:
+3
-3
@@ -102,7 +102,7 @@ const createResources = async ({ createPage, graphql }) => {
|
||||
// create home page for each resources
|
||||
resources.forEach((resource) => {
|
||||
createPage({
|
||||
path: path.join("resources", resource),
|
||||
path: path.posix.join("resources", resource),
|
||||
component: resourceHome,
|
||||
context: {
|
||||
resourceType: key,
|
||||
@@ -114,7 +114,7 @@ const createResources = async ({ createPage, graphql }) => {
|
||||
|
||||
query.data.allFile.edges.forEach(({ node }) => {
|
||||
createPage({
|
||||
path: path.join("resources", node.relativePath),
|
||||
path: path.posix.join("resources", node.relativePath),
|
||||
component: resourcePage,
|
||||
context: {
|
||||
file: node.relativePath,
|
||||
@@ -147,7 +147,7 @@ const createArchives = async ({ createPage, graphql }) => {
|
||||
|
||||
return result.data.allFile.edges.forEach(({ node }) => {
|
||||
createPage({
|
||||
path: path.join("archives", node.relativePath),
|
||||
path: path.posix.join("archives", node.relativePath),
|
||||
component: archive,
|
||||
context: {
|
||||
file: node.relativePath,
|
||||
|
||||
Reference in New Issue
Block a user