add some photos, add dates to GalleryImage, sort photos on homepage

This commit is contained in:
2021-07-10 09:27:56 -07:00
parent 17494d9a76
commit 46bcc43688
8 changed files with 31 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ const IndexPage = ({ data: { allFile: { edges } } }) => {
title="view image details"
to={`/photogallery/${image.base}/`}
>
<span className="icon-offset"><ion-icon name="expand"></ion-icon></span>
<span className="icon-offset"><ion-icon name="image"></ion-icon></span>
</Link>
<button
className={classnames(
@@ -182,7 +182,8 @@ export const query = graphql`
# images that don't work well
# base: {nin: ["DSC06517.jpg"]}
# childrenImageSharp: {elemMatch: {fluid: {aspectRatio: {lte: 1.3}}}}
}
},
sort: {order: DESC, fields: childrenImageSharp___fields___imageMeta___dateTaken}
) {
edges {
node {

View File

@@ -54,8 +54,8 @@ const GalleryPage = ({ data }) => {
export const query = graphql`
query GalleryPageQuery {
allFile(filter: {
sourceInstanceName: { eq: "gallery" }}
allFile(
filter: { sourceInstanceName: { eq: "gallery" } }
sort: {order: DESC, fields: childrenImageSharp___fields___imageMeta___dateTaken}
) {
edges {