--- import Base from './Base.astro' const years = await Astro.glob('../pages/archivio/*/index.md') const currentYear = years .map(module => module.file.split('/').at(-2)) .toSorted() .at(-1) const { file, frontmatter: { title, tutors: tutorEntries }, } = Astro.props const selectedCourseLabel = file.split('/').at(-1) const allCourses = await Astro.glob(`../pages/archivio/*/*`) const courses = allCourses.filter(module => module.file.includes(file.split('/').at(-2))) function upperFirst(string) { return string.charAt(0).toUpperCase() + string.slice(1) } ---

{title}

{ tutorEntries && (

Tutor

{tutorEntries.map(({ name, image, contacts }) => (

{name ?? '???'}

{name} {contacts && ( )}
))}
) }