diff --git a/public/game-articles/index.json b/public/game-articles/index.json index b6bc394a7c546e147834a8f29597b6f62428c3a5..e1e7267f4a6916f25b1c2ab5967acb4e4d7c62a8 100644 --- a/public/game-articles/index.json +++ b/public/game-articles/index.json @@ -1 +1,3 @@ -["fantom_quest/fantom_quest.json"] +{ + "articles": ["fantom_quest/fantom_quest.json"] +} diff --git a/public/games/games.js b/public/games/games.js index 4b8194e226888144041515a5fe984c5442794f74..1fe170a0e8356f6a2f2c642888b228937f45dc36 100644 --- a/public/games/games.js +++ b/public/games/games.js @@ -117,7 +117,7 @@ function loadArticles(dir_url) { fetchjson(`${dir_url}/index.json`) .then(json => { Promise.all( - json.map(async articlePath => { + json.articles.map(async articlePath => { const art = await fetchjson(`${dir_url}/${articlePath}`); const tmpSplit = articlePath.split("/"); tmpSplit.pop(); diff --git a/public/main.js b/public/main.js index 738bfa2c803bbc5ff8f66a8fad74e5be2f532fc0..9acdbd6e086051236263754a3d667960d62d34ea 100644 --- a/public/main.js +++ b/public/main.js @@ -386,7 +386,7 @@ function loadArticles(dir_url) { fetchjson(`${dir_url}/index.json`) .then(json => { Promise.all( - json.map(async articlePath => { + json.articles.map(async articlePath => { const art = await fetchjson(`${dir_url}/${articlePath}`); const tmpSplit = articlePath.split("/"); tmpSplit.pop(); diff --git a/public/news-articles/index.json b/public/news-articles/index.json index 47ee6090ac61be84066d8916c2916490ea40ac44..97e30216d9bc19ca9987e378734a7a2d41e58aa5 100644 --- a/public/news-articles/index.json +++ b/public/news-articles/index.json @@ -1 +1,3 @@ -["test/article-test.json", "nested/article-nested.json"] +{ + "articles": ["test/article-test.json", "nested/article-nested.json"] +} diff --git a/public/software-articles/index.json b/public/software-articles/index.json index 0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc..be123e8e7f7e52f4619f57fa2e11ceea8713ab7d 100644 --- a/public/software-articles/index.json +++ b/public/software-articles/index.json @@ -1 +1,3 @@ -[] \ No newline at end of file +{ + "articles": [] +} diff --git a/src/lib/article-utils.js b/src/lib/article-utils.js index 0d68c2a85baef65b0e91f30949c2b6fc11f04142..687a8b375c49d72af189e9c3ff91eececf07a4d1 100644 --- a/src/lib/article-utils.js +++ b/src/lib/article-utils.js @@ -26,7 +26,7 @@ function loadArticles(dir_url) { fetchjson(`${dir_url}/index.json`) .then(json => { Promise.all( - json.map(async articlePath => { + json.articles.map(async articlePath => { const art = await fetchjson(`${dir_url}/${articlePath}`); const tmpSplit = articlePath.split("/"); tmpSplit.pop();