Skip to content

Commit

Permalink
Merge pull request #18 from lego37yoon/main
Browse files Browse the repository at this point in the history
키노트 연사자 사정에 따른 수정
  • Loading branch information
sukso96100 authored Jul 19, 2024
2 parents 11703c2 + 9c1f85c commit cef882d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/components/FeaturedSpeakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ const featuredSessions = sessions.filter((session: any) =>
const featuredSpeakers = [];
for (const session of featuredSessions) {
if (session.speakers.length === 0) {
featuredSpeakers.push({
name: "TBD",
profileImg: null,
title: session.title,
url: session.url
});
}
for (const speaker of session.speakers) {
const imgId = config.featuredSpeakers.speakerIds.find(
(user) => speaker.db_id === user.db_id
Expand All @@ -30,13 +39,6 @@ for (const session of featuredSessions) {
}
}
// Keynote 관련 하드코딩
featuredSpeakers.push({
name: "Utkarsh Gupta",
title: "Keynote",
url: ""
})
---

{featuredSpeakers.length <= 0 ? "":
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = {
},
featuredSpeakers: {
indicoExportUrl: "https://events.canonical.com/export/event/48.json?detail=contributions&occ=yes&pretty=yes",
contributionIds: [7, 21, 10],
contributionIds: [7, 21, 10, 25],
speakerIds: [{ db_id: 562, user: 1624 }, { db_id: 525, user: 2692 }, { db_id: 524, user: 2699 }, { db_id: 526, user: 2658 }]
},
cityBanner: {
Expand Down

0 comments on commit cef882d

Please sign in to comment.