diff --git a/src/layouts/2025/Sponsor.astro b/src/layouts/2025/Sponsor.astro index 5b5b11d..3dbb737 100644 --- a/src/layouts/2025/Sponsor.astro +++ b/src/layouts/2025/Sponsor.astro @@ -14,9 +14,10 @@ const { title, frontmatter } = Astro.props; const myTitle = ['BuriKaigi', frontmatter.title, frontmatter.name].filter(Boolean).join(' | ') const allSponsors = await Astro.glob('../../pages/2025/sponsors/*.md'); -const index = allSponsors.findIndex(speaker => speaker.frontmatter.name === frontmatter.name) +const sponsors = allSponsors.filter(sponsor => sponsor.frontmatter.type === frontmatter.type) +const index = sponsors.findIndex(sponsor => sponsor.frontmatter.name === frontmatter.name) const first = index === 0 -const last = index === allSponsors.length - 1; +const last = index === sponsors.length - 1; --- @@ -129,13 +130,13 @@ const last = index === allSponsors.length - 1; - -