-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: toc with children getting displayed as "note" (#1253)
- Loading branch information
1 parent
b6901b4
commit 14298bb
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<% if (!note.children) { %> | ||
<section class='py2 clearfix'> | ||
<section class='py2 clearfix'> | ||
|
||
<h2 id='<%- slug(note.namespace) %>' class='mt0'> | ||
<%- note.name %> | ||
</h2> | ||
<h2 id='<%- slug(note.namespace) %>' class='mt0'> | ||
<%- note.name %> | ||
</h2> | ||
|
||
<% if (note.description) { %> | ||
<%= md(note.description) %> | ||
<% } %> | ||
</section> | ||
<% } %> | ||
<% if (note.description) { %> | ||
<%= md(note.description) %> | ||
<% } %> | ||
</section> |