Fix feed query

This commit is contained in:
alxshelepenok 2018-11-11 19:43:29 +03:00
parent fd85dc355a
commit 042caa13f8

View File

@ -58,7 +58,7 @@ module.exports = {
allMarkdownRemark(
limit: 1000,
sort: { order: DESC, fields: [frontmatter___date] },
filter: { frontmatter: { layout: { eq: "post" }, draft: { ne: true } } }
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
) {
edges {
node {
@ -69,7 +69,7 @@ module.exports = {
frontmatter {
title
date
layout
template
draft
description
}