Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Nov 3, 2021
1 parent 87e437f commit 5417a84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ export default function applyConfig(config) {
published_at: process.env.RAZZLE_FRONTEND_PUBLISHED_AT || null,
},
timezone: 'CET',
matomoSiteId: 46,
pathsWithFullobjects: ['/news', '/events'],
pathsWithExtraParameters: {
'/news': { b_start: 0, b_size: 1000 },
'/events': { b_start: 0, b_size: 1000 },
'/news': { b_start: 0, b_size: 100000, metadatafields: '_all' },
'/events': { b_start: 0, b_size: 100000, metadatafields: '_all' },
'/latest-news-events-on-forest': {
include_items: 'False',
},
},
};

Expand Down Expand Up @@ -61,4 +63,4 @@ export default function applyConfig(config) {
};

return config;
}
}
10 changes: 10 additions & 0 deletions src/localconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,16 @@ export function applyConfig(config) {
cssClass: 'drop-shadow-tile margin-block-10 padding-block-10',
},
];

config.settings.slate = config.settings.slate || {};
config.settings.slate.styleMenu = config.settings.slate.styleMenu || {};
config.settings.slate.styleMenu.inlineStyles = [
...(config.settings.slate.styleMenu?.inlineStyles || []),
{
cssClass: 'discreet block_source',
label: 'Source formatting',
},
];
// config.settings.search_portal_types = [
// 'Event',
// 'News Item',
Expand Down

0 comments on commit 5417a84

Please sign in to comment.