feat: split out period music pages + nav improvements

This commit is contained in:
Cory Dransfeldt 2024-06-14 10:10:22 -07:00
parent 9706124c53
commit d8290fe7db
No known key found for this signature in database
26 changed files with 143 additions and 98 deletions

View file

@ -23,10 +23,7 @@ export default {
shuffleArray,
// navigation
isLinkActive: (category, page) => {
const normalizedPage = page.includes('.html') ? page.replace('.html', '/') : page
return !!normalizedPage && normalizedPage.includes(category) && !/\d+/.test(normalizedPage);
},
isLinkActive: (category, page) => page.includes(category) && page.split('/').filter(a => a !== '').length <= 1,
// posts
filterByPostType: (posts, postType) => {