Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = {
query: `
{
allMarkdownRemark(
sort: { order: DESC, fields: [frontmatter___date] },
sort: { frontmatter: { date: DESC } },
filter: { fileAbsolutePath: { regex: "/contents/posts/" } },
) {
edges {
Expand Down
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
const result = await graphql(`
{
postsRemark: allMarkdownRemark(
sort: { fields: [frontmatter___date], order: ASC }
sort: { frontmatter: { date: ASC } }
filter: { fileAbsolutePath: { regex: "/contents/posts/" } }
limit: 1000
) {
Expand All @@ -25,7 +25,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
}
}
tagsGroup: allMarkdownRemark(limit: 2000) {
group(field: frontmatter___tags) {
group(field: { frontmatter: { tags: SELECT } }) {
fieldValue
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export const pageQuery = graphql`
}
}
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
sort: { frontmatter: { date: DESC } }
filter: { fileAbsolutePath: { regex: "/contents/posts/" } }
) {
group(field: frontmatter___tags) {
group(field: { frontmatter: { tags: SELECT } }) {
fieldValue
totalCount
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default Search
export const pageQuery = graphql`
query {
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
sort: { frontmatter: { date: DESC } }
filter: { fileAbsolutePath: { regex: "/contents/posts/" } }
) {
nodes {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/series.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ export const pageQuery = graphql`
}
}
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
sort: { frontmatter: { date: DESC } }
filter: { fileAbsolutePath: { regex: "/contents/posts/" } }
) {
group(field: frontmatter___tags) {
group(field: { frontmatter: { tags: SELECT } }) {
fieldValue
totalCount
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export const pageQuery = graphql`
}
}
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
sort: { frontmatter: { date: DESC } }
filter: { fileAbsolutePath: { regex: "/contents/posts/" } }
) {
group(field: frontmatter___tags) {
group(field: { frontmatter: { tags: SELECT } }) {
fieldValue
totalCount
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const pageQuery = graphql`
}
}
seriesList: allMarkdownRemark(
sort: { order: ASC, fields: [frontmatter___date] }
sort: { frontmatter: { date: ASC } }
filter: { frontmatter: { series: { eq: $series } } }
) {
edges {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Series.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default Series
export const pageQuery = graphql`
query BlogSeriesBySeriesName($series: String) {
posts: allMarkdownRemark(
sort: { order: ASC, fields: [frontmatter___date] }
sort: { frontmatter: { date: ASC } }
filter: { frontmatter: { series: { eq: $series } } }
) {
nodes {
Expand Down