Use classes instead of theme colors for tagging.
This commit is contained in:
parent
630aa275b5
commit
2a509b1ec3
2 changed files with 40 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue