--- import Layout from '../layouts/Layout.astro' import BaseSection from '../layouts/baseSection.astro' import TACard from '../components/taCard.astro' import type { FileData } from '../types/ta' import type { GlobAny } from '../types/generic' export interface Props { datafile: string } const { datafile } = Astro.props const fulldata = import.meta.glob(`../content/data/*.json`) const filecontent: FileData = ( await fulldata[`../content/data/${datafile}.json`]() )['default'] const pagetitle = `${filecontent.info.title} - FGO TA` filecontent.data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date)) --- << Back to database {filecontent.data.map((item) => )}