packages/build-tools/tasks/static-tasks.js
async function getSiteData(pages) {
  config = config || (await asyncConfig());
  const nestedPages = await getNestedPages(config.srcDir);
  const site = {
    nestedPages,
    pages: pages.map(page => ({
      url: page.url,
      meta: page.meta,
      // choosing not to have `page.body` in here on purpose
    })),
  };

  return site;
}
async function getSiteData(pages) {
  config = config || (await asyncConfig());
  const nestedPages = await getNestedPages(config.srcDir);
  const site = {
    nestedPages,
    pages: pages.map(page => ({
      url: page.url,
      meta: page.meta,
      // choosing not to have `page.body` in here on purpose
    })),
  };

  return site;
}
async function getSiteData ( pages ) { config = config || ( await asyncConfig ( ) ) ; const nestedPages = await getNestedPages ( config . srcDir ) ; const site = { nestedPages , pages : pages . map ( page => ( { url : page . url , meta : page . meta , // choosing not to have `page.body` in here on purpose } ) ) , } ; return site ; }
Get the site data based on the pages
@param {object} pages
@returns {{pages}}
Get the site data based on the pages