--- import "@fontsource-variable/work-sans"; import workSans from "@fontsource-variable/work-sans/files/work-sans-latin-wght-normal.woff2" import Navbar from '../components/navbar/navbar.astro' import NavbarEntry from '../components/navbar/navbarEntry.astro' import navdata from '../../static/data/_navdata.json' import embed from '../assets/embed.png' import home from 'iconoir/icons/home.svg' import servants from 'iconoir/icons/task-list.svg' import ta_collection from 'iconoir/icons/database.svg' import blog from 'iconoir/icons/bookmark-book.svg' import about from 'iconoir/icons/mail.svg' export interface Props { title: string currentpage: string descriptionOverride?: string } interface IconsLookup { [key: string]: ImageMetadata } const icons: IconsLookup = { home: home, servants: servants, ta_collection: ta_collection, blog: blog, about: about, } const { descriptionOverride, currentpage, title } = Astro.props let description if (descriptionOverride === undefined) { description = 'Firqs own site!' } else { description = descriptionOverride } let currPage = 'https://firq.dev/' if (currentpage !== 'home') { currPage += currentpage } const mapped_navdata = navdata.map((item) => ({ ...item, ...{ icon: icons[item.icon] }, })) ---