import * as React from 'react' import { graphql, Link } from 'gatsby' import { GatsbyImage, getImage } from 'gatsby-plugin-image' // markup const IndexPage = ({ data }) => { const images = React.useMemo(() => data.allFile.edges.map(edge => edge.node), [data]) console.log('images', images) return (

Chuck Dries

Software Engineer in web & VR

{/*

Congratulations
— you just made a Gatsby site! 🎉🎉🎉

*/}

Photography

{images.map(image => { const name = image.childImageSharp.fields.imageMeta.iptc.object_name || image.base console.log('name', name) // const file = data.allFile // console.log(fileName) // return <> return ( //
// . //
); })}
) } export const query = graphql` query HomePageGallery { allFile(filter: { sourceInstanceName: { eq: "gallery" }}) { edges { node { relativePath, base, childImageSharp{ gatsbyImageData( layout: CONSTRAINED, placeholder: DOMINANT_COLOR, # width: 400 # height: 900 height: 600 ) fields { imageMeta { dateTaken iptc { caption object_name } exif { FNumber ExposureTime ShutterSpeedValue ISO } } } } } } } }`; export default IndexPage