Chocks Away page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user