import BasicPage from "../../../components/basic-page"; import IDCard from "../../../components/identity-card"; import PCard from "../../../components/partner-card"; // An object listing pages folks can visit export async function getStaticProps() { const fs = require("fs"); const yaml = require("js-yaml"); let PARTNERS = {}; try { let fileContent = fs.readFileSync("./data/identities/partners.yml", "utf8"); PARTNERS = yaml.load(fileContent); } catch (e) { console.log(e); } return { props: { PARTNERS, }, }; } export default function Partners({ PARTNERS }) { if (PARTNERS) { return ( {Object.keys(PARTNERS).map((partner) => ( ))} ); } else { return ( ); } }