Skip to content

Commit ffc5c0f

Browse files
batjearv
authored andcommitted
Fix anchor for not toc targets (#653)
Clicking on toc items generated from the documentation.yaml file didnt work. The target id was not properly slugged. Always slug your target. Very important.
1 parent ec03e0b commit ffc5c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default_theme/note._

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class='py2 clearfix'>
22

3-
<h2 id='<%- note.namespace %>' class='mt0'>
3+
<h2 id='<%- slug(note.namespace) %>' class='mt0'>
44
<%- note.name %>
55
</h2>
66

0 commit comments

Comments
 (0)