Skip to content

Commit

Permalink
fix #703
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Feb 9, 2022
1 parent e1233de commit 034d684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tags/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@

tabNav = `<ul class="nav-tabs">${tabNav}</ul>`;
tabContent = `<div class="tab-content">${tabContent}</div>`;

return `<div class="tabs" id="${tabName.toLowerCase().split(' ').join('-')}">${tabNav + tabContent}</div>`;
// https://github.com/volantis-x/hexo-theme-volantis/issues/703
return `<div class="tabs" id="tab-${tabName.toLowerCase().split(' ').join('-')}">${tabNav + tabContent}</div>`;
}

hexo.extend.tag.register('tabs', postTabs, {ends: true});
Expand Down

0 comments on commit 034d684

Please sign in to comment.