We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd9508 commit 0b0fd93Copy full SHA for 0b0fd93
packages/engine/src/web-menu/menus/IndexMenu.js
@@ -57,11 +57,12 @@ export class IndexMenu extends Menu {
57
if (this.childCondition(node) && node.children) {
58
const lvl = node.model.level;
59
const levelClass = `lvl-${lvl + 1}`;
60
-
+ const summaryContent = !node.model.menuNoLink?html`<a href="${node.model.url}">${node.model.menuLinkText}</a>`:node.model.menuLinkText;
61
+
62
if (lvl > 2) {
63
return html`
64
<details ?open=${open}>
- <summary>${node.model.menuLinkText}</summary>
65
+ <summary>${summaryContent}</summary>
66
<ul class=${levelClass}>
67
${node.children.map(/** @param {NodeOfPage} child */ child => this.listItem(child))}
68
</ul>
0 commit comments