function serialize(page, { resolvePagePath }) {
  return {
    url: `${resolvePagePath(page)}`,
    changefreq: `daily`,
    priority: 0.7,
  }
}
@name serialize

This function is executed by allPages.map(page => thisFunc(page, siteUrl, tools))
allpages is the result of the filter process

@param {object[]} page - results of the resolvePages function
@param {object} tools - contains tools for serializing