code: function ( uri ) {
      var ret = {
          folder: false,
          redirect: false
      };
  
      uri = uri.replace( rSlash, "" );
  
      for ( var i = serverConfig.siteData.siteLayout.layout.length; i--; ) {
          var layout = serverConfig.siteData.siteLayout.layout[ i ];
  
          // Break out if folder matched
          if ( ret.folder ) {
              break;
          }
  
          // Skip hidden navigations
          //if ( layout.identifier === "_hidden" ) {
          //    continue;
          //}
  
          for ( var j = layout.links.length; j--; ) {
              var link = layout.links[ j ];
  
              // Matched a root level folder uri request
              if ( rIndexFolder.test( link.typeName ) && link.urlId === uri ) {
                  if ( rFolder && keyFiles.folderList ) {
                      break;
  
                  } else if ( rIndex && keyFiles.indexList ) {
                      break;
  
                  } else {
                      ret.folder = true;
                      ret.redirect = ("/" + link.children[ 0 ].urlId + "/");
                      break;
                  }
              }
          }
      }
  
      return ret;
  }
docs: /*!
  
  Squarespace node server.
  
  - Cache conventions
  - block-*.html
  - query-*.json
  - page-*.json
  - page-*.html
  - api-*.json