Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix(BlogPost): change filter from $slug to $url
Browse files Browse the repository at this point in the history
to prevent collisions like happened with viva-la-boobies
  • Loading branch information
CanRau committed Oct 6, 2018
1 parent 81a4573 commit f35b7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/BlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -211,7 +211,7 @@ export const query = graphql`
}
}
page: markdownRemark(fields: { slug: { eq: $slug } }) {
page: markdownRemark(fields: { url: { eq: $url } }) {
fields {
dateTime
dateStr
Expand Down

0 comments on commit f35b7aa

Please sign in to comment.