--- 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'; import { Icon } from 'astro-icon/components'; const scriptureStyles: {[index: string]:string} = { gospels: 'gospels', pentateuch: 'pentateuch', historic: 'historic', acts: 'acts', wisdom: 'wisdom', pauline: 'pauline', prophets: 'prophets', revelation: 'revelation', devotional: 'devotional', }; const getScriptureStyle = (cat: any): string => { if (cat in scriptureStyles) { return scriptureStyles[cat]; } return 'gospels'; }; const postMetaIcons: {[index :string]:{[index: string]:string}} = { "long-form": { "src": "justify-left", "alt": "Long-form Notes", }, "abbreviated": { "src": "list-ul", "alt": "Abbreviated Notes", } }; const base = import.meta.env.BASE_URL; const { notes } = Astro.props; ---