Skip to content

Commit 099694b

Browse files
improve: feat navbar add active to it
1 parent 7f06db4 commit 099694b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/export/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ function generateNavbar(navbar: any, hasSearch: boolean = false): string {
636636
let linkItems = ''
637637
for (let i = 0; i < links.length; i++) {
638638
const link = links[i]
639-
const active = i === 0 ? ' active' : ''
639+
const active = link.active === true ? ' active' : ''
640640
linkItems += `
641641
<li class="nav-item">
642642
<a class="nav-link${active}" href="${link.url || '#'}">${link.label || ''}</a>

0 commit comments

Comments
 (0)