feat: split out period music pages + nav improvements
This commit is contained in:
parent
9706124c53
commit
d8290fe7db
26 changed files with 143 additions and 98 deletions
|
@ -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) => {
|
||||
|
|
Reference in a new issue