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

fix: remove index files from carousel

parent a645f22d
No related branches found
No related tags found
1 merge request!45fix: remove index files from carousel
Pipeline #8035 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