Remove path concatenation in Algolia sync script
This commit is contained in:
parent
bba78afc3b
commit
6f37a02653
|
|
@ -78,8 +78,6 @@ const pages = {};
|
||||||
function pushChildPages(masterPage) {
|
function pushChildPages(masterPage) {
|
||||||
if (masterPage.pages) {
|
if (masterPage.pages) {
|
||||||
masterPage.pages.forEach(page => {
|
masterPage.pages.forEach(page => {
|
||||||
if (masterPage.path)
|
|
||||||
page.path = (masterPage.path || masterPage.ref) + "/" + page.path;
|
|
||||||
pushChildPages(page);
|
pushChildPages(page);
|
||||||
page.pages = undefined;
|
page.pages = undefined;
|
||||||
pages[page.id] = page;
|
pages[page.id] = page;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user