Use classes instead of theme colors for tagging.

This commit is contained in:
Benjamin A. Shelton 2026-06-21 19:17:53 -06:00
commit 2a509b1ec3
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 40 additions and 10 deletions

View file

@ -8,21 +8,21 @@ 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',
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 'bg-gospels';
return 'gospels';
};
const base = import.meta.env.BASE_URL;