Chocks Away page

This commit is contained in:
2026-06-29 16:14:34 -04:00
parent 9d7d7a8b6d
commit a3aa683190
9 changed files with 157 additions and 3 deletions
+3
View File
@@ -4,6 +4,7 @@ import {
fallbackDocuments,
fallbackEvents,
fallbackFuelPrices,
fallbackGiftShopImages,
fallbackHomepageBannerImages,
fallbackHomepageVolunteerImages,
fallbackNews,
@@ -48,6 +49,7 @@ const directusDebug = ['1', 'true', 'yes', 'on'].includes((process.env.DIRECTUS_
const homepageBannerFolder = process.env.DIRECTUS_HOMEPAGE_BANNER_FOLDER ?? 'homepage-banners';
const homepageVolunteersFolder = process.env.DIRECTUS_HOMEPAGE_VOLUNTEERS_FOLDER ?? 'homepage-volunteers';
const cafePageFolder = process.env.DIRECTUS_CAFE_PAGE_FOLDER ?? 'cafe-page';
const giftShopFolder = process.env.DIRECTUS_GIFT_SHOP_FOLDER ?? 'gift-shop';
type DirectusFolder = {
id: string;
@@ -300,6 +302,7 @@ export const getHomepageVolunteerImages = () =>
shuffleRest: true,
});
export const getCafePageImages = () => getImagesFromFolder(cafePageFolder, fallbackCafePageImages);
export const getGiftShopImages = () => getImagesFromFolder(giftShopFolder, fallbackGiftShopImages);
function stripHtml(value = ''): string {
return value