diff --git a/src/components/GalleryImage/GalleryImage.js b/src/components/GalleryImage/GalleryImage.js index 644fc10..f769574 100644 --- a/src/components/GalleryImage/GalleryImage.js +++ b/src/components/GalleryImage/GalleryImage.js @@ -28,6 +28,7 @@ const logKeyShortcut = (keyCode) => { const GalleryImage = ({ data, pageContext }) => { const image = data.allFile.edges[0].node; const ar = getAspectRatio(image); + console.log(image); React.useEffect(() => { const keyListener = (e) => { @@ -60,13 +61,11 @@ const GalleryImage = ({ data, pageContext }) => { }, [pageContext]); const name = getName(image); - const {meta, dateTaken: dt} = getMeta(image); + const { meta, dateTaken: dt } = getMeta(image); // const locationString = meta.City; let locationString; if (meta.City || meta.State || meta.Location) { - const location = [meta.Location, meta.City, meta.State].filter( - Boolean - ); + const location = [meta.Location, meta.City, meta.State].filter(Boolean); locationString = location.join(", "); } const vibrant = getVibrant(image, true); @@ -159,6 +158,13 @@ const GalleryImage = ({ data, pageContext }) => {
{meta.Caption}
+ + Download wallpaper + {