Skip to content
Snippets Groups Projects
Commit 4fb8f471 authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

Merge branch 'fix/slider-remove-index-files' into 'main'

fix: remove index files from carousel

See merge request !45
parents a645f22d 4af79477
No related branches found
No related tags found
1 merge request!45fix: remove index files from carousel
Pipeline #8037 passed
......@@ -53,6 +53,10 @@ if (ascending) {
);
}
sortedAndFiltered = sortedAndFiltered.filter(
(n) => !(n.file.endsWith("index.mdx") || n.file.endsWith("index.md"))
);
const trimmedArticlesAndEvents = limit
? sortedAndFiltered.slice(0, limit)
: sortedAndFiltered;
......
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