fix(client): landing page superblocks (#38914)
This commit is contained in:
committed by
GitHub
parent
7fd92c5fe6
commit
18d2dca05b
@ -40,7 +40,7 @@ const AsFeaturedSection = () => (
|
|||||||
|
|
||||||
export const Landing = ({ edges }) => {
|
export const Landing = ({ edges }) => {
|
||||||
const superBlocks = uniq(edges.map(element => element.node.superBlock));
|
const superBlocks = uniq(edges.map(element => element.node.superBlock));
|
||||||
const interviewPrep = superBlocks.splice(10, 1);
|
const interviewPrep = superBlocks.splice(-1);
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
|
@ -25,8 +25,11 @@ IndexPage.displayName = 'IndexPage';
|
|||||||
export default IndexPage;
|
export default IndexPage;
|
||||||
|
|
||||||
export const query = graphql`
|
export const query = graphql`
|
||||||
query challNodes {
|
query MyQuery {
|
||||||
allChallengeNode(sort: { fields: [superOrder, order, challengeOrder] }) {
|
allChallengeNode(
|
||||||
|
filter: { isHidden: { eq: false } }
|
||||||
|
sort: { fields: [superOrder, order, challengeOrder] }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
fields {
|
fields {
|
||||||
|
Reference in New Issue
Block a user