Change frontmatter fields

This commit is contained in:
alxshelepenok
2018-11-11 19:32:51 +03:00
parent de05e137ba
commit 440d4e88c7
19 changed files with 26 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ module.exports = async (graphql, actions) => {
const result = await graphql(`
{
allMarkdownRemark(
filter: { frontmatter: { layout: { eq: "post" }, draft: { ne: true } } }
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
) {
group(field: frontmatter___category) {
fieldValue

View File

@@ -9,7 +9,7 @@ module.exports = async (graphql, actions) => {
const result = await graphql(`
{
allMarkdownRemark(
filter: { frontmatter: { layout: { eq: "post" }, draft: { ne: true } } }
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
) { totalCount }
}
`);

View File

@@ -11,7 +11,7 @@ module.exports = async (graphql, actions) => {
const result = await graphql(`
{
allMarkdownRemark(
filter: { frontmatter: { layout: { eq: "post" }, draft: { ne: true } } }
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
) {
group(field: frontmatter___tags) {
fieldValue