From f35b7aa92ce1f5cb3f86763728313c73acf5971c Mon Sep 17 00:00:00 2001 From: CanRau Date: Mon, 24 Sep 2018 20:57:50 -0500 Subject: [PATCH] fix(BlogPost): change filter from $slug to $url to prevent collisions like happened with viva-la-boobies --- src/templates/BlogPost.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/BlogPost.js b/src/templates/BlogPost.js index 6813e9e..8fbc178 100644 --- a/src/templates/BlogPost.js +++ b/src/templates/BlogPost.js @@ -183,7 +183,7 @@ BlogPost.propTypes = { export default BlogPost export const query = graphql` - query($lang: String!, $slug: String!) { + query($lang: String!, $url: String!) { ...siteData ...SiteMeta ...languages @@ -211,7 +211,7 @@ export const query = graphql` } } - page: markdownRemark(fields: { slug: { eq: $slug } }) { + page: markdownRemark(fields: { url: { eq: $url } }) { fields { dateTime dateStr