lib/services/pages.js
function getSite(prefix, locals) {
  const site = locals && locals.site;

  return site || siteService.getSiteFromPrefix(prefix);
}
function getSite(prefix, locals) {
  const site = locals && locals.site;

  return site || siteService.getSiteFromPrefix(prefix);
}
function getSite ( prefix , locals ) { const site = locals && locals . site ; return site || siteService . getSiteFromPrefix ( prefix ) ; }
Given either locals or a string,
return the site we're working with

@param {String} prefix
@param {Object} locals
@returns {Object}
Given either locals or a string return the site we re working with