Skip to content

Commit

Permalink
fix(client): block intro - go to first lesson button link (freeCodeCa…
Browse files Browse the repository at this point in the history
  • Loading branch information
gikf committed Jul 24, 2024
1 parent 484829b commit f3dc9dd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion client/src/templates/Introduction/intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,28 @@ IntroductionPage.displayName = 'IntroductionPage';
export default IntroductionPage;

export const query = graphql`
query IntroPageBySlug($slug: String!) {
query IntroPageBySlug($slug: String!, $block: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) {
frontmatter {
block
superBlock
}
html
}
allChallengeNode(
sort: { fields: [challenge___challengeOrder] }
filter: { challenge: { block: { eq: $block } } }
limit: 1
) {
edges {
node {
challenge {
fields {
slug
}
}
}
}
}
}
`;

0 comments on commit f3dc9dd

Please sign in to comment.