code: function getPageName (pageDir, entry) {
    const page = '/' + relative(pageDir, entry)
    let base = page.split(extname(page)).join('')
    if (base[0] === '/') {
      base = base.substring(1)
    }
    if (base === 'index') {
      const dir = basename(dirname(page))
      return dir === '' ? 'index' : dir
    } else {
      return base
    }
  }
docs: Get the page name  e.g. - index.js        => index - about.js        => about - movies/index.js => movies