diff --git a/data/gallery/_DSC4792.jpg b/data/gallery/_DSC4792.jpg new file mode 100644 index 0000000..d724a6a --- /dev/null +++ b/data/gallery/_DSC4792.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf0246ce53d755836ad9940403ad1a8773ac571bff339f131f2282c759338cb6 +size 4133928 diff --git a/gatsby-node.js b/gatsby-node.js index 435a9e5..daed48b 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -163,7 +163,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => { return; } // Create pages for each markdown file. - const galleryImageTemplate = path.resolve('src/components/GalleryImage.js'); + const galleryImageTemplate = path.resolve('src/components/GalleryImage/GalleryImage.js'); // const diffDate = (a, b) => // new Date(R.path(['node', 'childImageSharp', 'fields', 'imageMeta', 'dateTaken'], a)).getTime() - new Date(R.path(['node', 'childImageSharp', 'fields', 'imageMeta', 'dateTaken'],b)).getTime(); diff --git a/src/components/GalleryImage.js b/src/components/GalleryImage/GalleryImage.js similarity index 72% rename from src/components/GalleryImage.js rename to src/components/GalleryImage/GalleryImage.js index def40f9..32d6a55 100644 --- a/src/components/GalleryImage.js +++ b/src/components/GalleryImage/GalleryImage.js @@ -8,11 +8,12 @@ import { getVibrant, getVibrantToHelmetSafeBodyStyle, hasName, -} from '../utils'; +} from '../../utils'; import { GatsbyImage, getImage } from 'gatsby-plugin-image'; import { Helmet } from 'react-helmet'; import classnames from 'classnames'; import posthog from 'posthog-js'; +import MetadataItem from './MetadataItem'; const logKeyShortcut = (keyCode) => { try { @@ -128,56 +129,11 @@ const GalleryImage = ({ data, pageContext }) => {
{meta.iptc.caption}
{} - {dateTaken && -