Skip to content

Commit 8d50f2c

Browse files
authored
Merge pull request #291 from TonyGravagno/tg-premium-in-nav
Avoid premHint class on Coding Features page link
2 parents b2b4b89 + 824a539 commit 8d50f2c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

files/generators/generate-navs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function generateNavigators(scope, navs, name, state, pfx) {
1717
let nav = '', addcontent = '';
1818

1919
// function list
20+
const noClassFor = ['04 Coding Features'];
2021
if (navs instanceof Array) {
2122
for (const func of navs.filter(nothidden)) {
2223
const m = scope[func];
@@ -27,7 +28,9 @@ function generateNavigators(scope, navs, name, state, pfx) {
2728
m.hasNav ||= (name !== 'All');
2829
nav += newNaviItem(
2930
state.curScope + `/${func.replace(/^\d+|\s+/g, '')}.htm`,
30-
(m.name || func).replace(/^\d+\s*/, ''), getAddClass(m, state));
31+
(m.name || func).replace(/^\d+\s*/, ''),
32+
noClassFor.includes(m.name || func) ? '' : getAddClass(m, state)
33+
);
3134
}
3235
}
3336
}

0 commit comments

Comments
 (0)