Skip to content
Snippets Groups Projects
Unverified Commit ad591ed3 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #328 from osunyorg/pagefind-exclusion-syntax

Syntaxe d'exclusion pagefind qui fonctionne réellement en local
parents d7cd1d9a 17035a6d
No related branches found
No related tags found
No related merge requests found
...@@ -20,22 +20,27 @@ console.log(` ...@@ -20,22 +20,27 @@ console.log(`
const command = process.argv[2]; const command = process.argv[2];
let pagefindExclude = ` let pagefindExclude = '';
.administrators__term, // Categories: No list of categories
.authors__term, pagefindExclude += '.categories__taxonomy, .categories__term, ';
.categories__taxonomy, .categories__term, pagefindExclude += '.posts_categories__taxonomy, .posts_categories__term, ';
.posts_categories__taxonomy, .posts_categories__term, pagefindExclude += '.events_categories__taxonomy, .events_categories__term, ';
.events_categories__taxonomy, .events_categories__term, // Diplomas: No list of diplomas or block diplomas
.diplomas__taxonomy, .block-diplomas, pagefindExclude += '.diplomas__taxonomy, .block-diplomas, ';
.events__section, .block-agenda, // Agenda events: No list of events or block events
.organizations__section, .block-organizations, pagefindExclude += '.events__section, .block-agenda, ';
.block-pages, // Organizations: No list of organizations or block organizations
.persons__section, .block-persons, pagefindExclude += '.organizations__section, .block-organizations, ';
.posts__section, .block-posts, .post-sidebar, // Pages: No block pages (there's no difference between list and page)
.block-programs, pagefindExclude += '.block-pages, ';
.researchers__term, // Persons: no list or block
.teachers__term pagefindExclude += '.persons__section, .block-persons, ';
`; // No list of people's facets
pagefindExclude += '.administrators__term, .authors__term, .researchers__term, .teachers__term,';
// Posts: no list, block posts, or post sidebar
pagefindExclude += '.posts__section, .block-posts, .post-sidebar, ';
// Programs: no block
pagefindExclude += '.block-programs';
function execute(string) { function execute(string) {
console.log("OSUNY runs " + string); console.log("OSUNY runs " + string);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment