import * as React from 'react'; import { graphql } from 'gatsby'; // import { GatsbyImage, getImage } from 'gatsby-plugin-image'; import { Link } from 'gatsby'; import { Helmet } from 'react-helmet'; // import Masonry, { ResponsiveMasonry } from 'react-responsive-masonry'; // import { getMeta } from '../utils'; import MasonryGallery from '../components/MasonryGallery'; const GalleryPage = ({ data }) => { const images = React.useMemo(() => data.allFile.edges .map(edge => edge.node, [data]) , [data]); return (<> Photo Gallery | Chuck Dries
home

Photo Gallery

); }; export const query = graphql` query GalleryPageQuery { allFile(filter: { sourceInstanceName: { eq: "gallery" }} sort: {order: DESC, fields: childrenImageSharp___fields___imageMeta___dateTaken} ) { edges { node { relativePath, base, childImageSharp{ fluid { aspectRatio }, gatsbyImageData( layout: CONSTRAINED, height: 550 ) fields { imageMeta { dateTaken iptc { # caption object_name } # exif { # FNumber # ExposureTime # ShutterSpeedValue # ISO # } } } } } } } }`; export default GalleryPage;