text: // -- The Link Resolver
  // This function will be used to generate links to Prismic documents
  // As your project grows, you should update this function according to your routes
  
  exports.linkResolver = function linkResolver(doc) {
    // Route for previews
    // const doc = data.prismic.allPages.edges.slice(0, 1).pop()
    if (!doc) return null
  
    // Route for blog posts
    if (doc.type === "Post") {
      return "/blog/" + doc.uid
    }
  
    // Homepage route fallback
    return "/"
  }
  