--- import '../styles/global.css'; import { urlfrag } from '../utils/path'; import { dateFormat } from '../utils/date'; import { titleCase } from '../utils/strings'; import { type CollectionEntry } from 'astro:content'; const scriptureStyles: {[index: string]:string} = { gospels: 'bg-gospels', pentateuch: 'bg-pentateuch', historic: 'bg-historic', acts: 'bg-acts', wisdom: 'bg-wisdom', pauline: 'bg-pauline', prophets: 'bg-prophets', revelation: 'bg-revelation', devotional: 'bg-devotional', }; const getScriptureStyle = (cat: any): string => { if (cat in scriptureStyles) { return scriptureStyles[cat]; } return 'bg-gospels'; }; const base = import.meta.env.BASE_URL; const { notes } = Astro.props; ---