fixing active menu for blog posts
This commit is contained in:
parent
d02b5789ad
commit
ebd97d3e76
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
response = ' aria-current="page"';
|
response = ' aria-current="page"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemUrl.length > 1 && pageUrl.indexOf(itemUrl) === 0) {
|
if (itemUrl.length > 1 && pageUrl.indexOf(itemUrl.replace('/page-0/', '')) === 0) {
|
||||||
response += 'data-state="active"';
|
response += 'data-state="active"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue