Skip to content

Commit

Permalink
refactor: list images in templates updated #145
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Sep 11, 2023
1 parent 97c6849 commit 725adbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion site/src/templates/post-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ export const pageQuery = graphql`
frontmatter {
slug
title
listimage
listimage {
childImageSharp {
gatsbyImageData(
layout: FULL_WIDTH
)
}
}
listimage_position
date(formatString: "YYYY-MM-DD")
excerpt
Expand Down
10 changes: 7 additions & 3 deletions site/src/templates/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ export default function Template({ pageContext, data}) {
words: node.wordCount.words
};

// const url = `/${date}/${slug}`;

const excerpt = node.frontmatter.excerpt || node.excerpt || null;

return (
Expand Down Expand Up @@ -98,7 +96,13 @@ export const pageQuery = graphql`
frontmatter {
slug
title
listimage
listimage {
childImageSharp {
gatsbyImageData(
layout: FULL_WIDTH
)
}
}
listimage_position
date(formatString: "YYYY-MM-DD")
excerpt
Expand Down

0 comments on commit 725adbe

Please sign in to comment.