Skip to content

Commit f294fe4

Browse files
authored
Update index.js
1 parent 7d9c044 commit f294fe4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pages/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import GetInvolved from '../components/home/get-involved/GetInvolved'
1313
import Events from '../components/home/events/Events'
1414
import AnchorNavigation from '../components/home/anchor-navigation/AnchorNavigation'
1515
import { useBackground } from '../contexts/BackgroundContext'
16-
import News from '../components/home/news/News'
1716

1817
export default function Home({ hero, about, news, getInvolved, events, connection, maintainerOptions, partnerOptions, newsList }) {
1918
const containerRef = useRef(null)
@@ -66,10 +65,6 @@ export default function Home({ hero, about, news, getInvolved, events, connectio
6665
buttonLink={ROUTES.SCHEDULE.path}
6766
/>
6867
<About title={about.title} content={about.content} theme1={about.theme1} theme2={about.theme2}/>
69-
<News
70-
news={newsList.slice(-1)[0]}
71-
title={news.title}
72-
/>
7368
<GetInvolved
7469
title={getInvolved.title}
7570
content={getInvolved.content}
@@ -95,8 +90,6 @@ export default function Home({ hero, about, news, getInvolved, events, connectio
9590
export async function getStaticProps() {
9691
const hero = getDataFromMD('content/home/1-hero.md')
9792
const about = getDataFromMD('content/home/2-about.md')
98-
const news = getDataFromMD('content/home/3-news.md')
99-
const newsList = getDataFromMD('content/news/index.md').news
10093
const getInvolved = parseGetInvolvedData(
10194
getDataFromMD('content/home/4-get-involved.md'),
10295
)
@@ -118,9 +111,7 @@ export async function getStaticProps() {
118111
},
119112
connection,
120113
maintainerOptions,
121-
partnerOptions,
122-
news,
123-
newsList
114+
partnerOptions
124115
},
125116
}
126117
}

0 commit comments

Comments
 (0)