text: const path = require(`path`);
  
  exports.createPages = async ({ actions, graphql }) => {
      const files = await graphql(`
      {
          allFile {
            nodes {
              relativePath
              id
            }
          }
        }
      `);
      files.data.allFile.nodes.forEach((file)=>{
          actions.createPage({
              path: `imagenes/${file.id}`,
              component: path.resolve('src/templates/course.jsx'),
              context: {
                  name: file.relativePath,
                  id: file.id
              }
          })
      })
  
  }