--- import BaseLayout from '../layouts/base.astro'; import AboutFooter from '../components/AboutFooter.astro'; import * as config from '../config.yaml'; import events from '../events.json'; import articles from '../articles.json'; import talks from '../talks.json'; import explorer from '../explorer.json'; import { isRenderTemplateResult } from 'astro/runtime/server/render/astro/render-template.js'; import { isPast, format } from 'date-fns'; let eventsPast = 0 let eventsUpcoming = 0 for (const ev of events) { let future = true if (ev.date.match(/^\d{4}-\d{2}-\d{2}$/) && isPast(new Date(ev.date))) { future = false } if (future) { eventsUpcoming++ } else { eventsPast++ } } ---
Events
{eventsUpcoming}
Upcoming events
{ eventsPast}
Past events
Research
3 reserch projects →
Explorer
{explorer.projects}
Projects
{explorer.contributors}
Contributors

Latest Articles

{articles.slice(0,4).map((entry) => (
{entry.title} {format(new Date(entry.date), 'MMMM do, yyyy')}
))}

Latest Talks

{talks.slice(0,4).map((entry) => (
))}