rosary: recommend Glorious mysteries on Lenten Sundays
All checks were successful
CI / update (push) Successful in 1m40s
All checks were successful
CI / update (push) Successful in 1m40s
Sundays during Lent are "little Easters", so treat them like ordinary Sundays (Glorious mysteries, no Fastenzeit badge) rather than Lent.
This commit is contained in:
@@ -51,6 +51,7 @@ export type LiturgicalSeason = 'eastertide' | 'lent' | null;
|
|||||||
*/
|
*/
|
||||||
export function getLiturgicalSeason(date: Date = new Date()): LiturgicalSeason {
|
export function getLiturgicalSeason(date: Date = new Date()): LiturgicalSeason {
|
||||||
if (isEastertide(date)) return 'eastertide';
|
if (isEastertide(date)) return 'eastertide';
|
||||||
if (isLent(date)) return 'lent';
|
// Sundays during Lent are "little Easters" — recommend Glorious mysteries, no Lent tag
|
||||||
|
if (isLent(date) && date.getDay() !== 0) return 'lent';
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user