Fix archive issues, add archive listing page

This commit is contained in:
Angelos Chalaris
2019-08-19 10:02:32 +03:00
parent 26904954ab
commit f9656c18ac
5 changed files with 4384 additions and 4302 deletions

View File

@ -56,7 +56,7 @@ export default connect(
)(SnippetPage);
export const pageQuery = graphql`
query BlogPostBySlug($slug: String!) {
query BlogPostBySlug($slug: String!, $scope: String!) {
logo: file(absolutePath: { regex: "/logo_reverse_md.png/" }) {
id
childImageSharp {
@ -89,7 +89,7 @@ export const pageQuery = graphql`
title
}
}
snippetDataJson(meta: { type: { eq: "snippetArray" }, scope: {eq: "./snippets"} }) {
snippetDataJson(meta: { type: { eq: "snippetArray" }, scope: {eq: $scope} }) {
data {
title
id