Skip to content

Commit

Permalink
chore: close 2023 survey
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Dec 31, 2023
1 parent 313493e commit 1c0646c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
74 changes: 37 additions & 37 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
// import React from "react"
// import Results from "../components/Results/index"
// import { graphql } from "gatsby"
import React from "react"
import Results from "../components/Results/index"
import { graphql } from "gatsby"

// export const query = graphql`
// {
// allMdx(
// sort: { fields: frontmatter___position, order: ASC }
// filter: { fileAbsolutePath: { regex: "/2022/" } }
// ) {
// edges {
// node {
// body
// id
// frontmatter {
// position
// title
// }
// }
// }
// }
// }
// `
export const query = graphql`
{
allMdx(
sort: { fields: frontmatter___position, order: ASC }
filter: { fileAbsolutePath: { regex: "/2022/" } }
) {
edges {
node {
body
id
frontmatter {
position
title
}
}
}
}
}
`

// const Results2022 = ({ data }) => {
// return <Results data={data} year={2022} />
// }
const Results2022 = ({ data }) => {
return <Results data={data} year={2022} />
}

// export default Results2022
export default Results2022

import React from "react"
import Home from "../components/Home"
import { Layout } from "../components/Layout"
// import React from "react"
// import Home from "../components/Home"
// import { Layout } from "../components/Layout"

const IndexPage = () => {
return (
<Layout>
<Home />
</Layout>
)
}
// const IndexPage = () => {
// return (
// <Layout>
// <Home />
// </Layout>
// )
// }

export default IndexPage
// export default IndexPage
4 changes: 4 additions & 0 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Redirects from survey pages as survey is now closed

/beforeStart /
/start /
/thanks /

0 comments on commit 1c0646c

Please sign in to comment.