Skip to content

Commit

Permalink
Fix ToC generator to work with base
Browse files Browse the repository at this point in the history
  • Loading branch information
nauzilus committed Mar 1, 2014
1 parent 45eddb4 commit 583c405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $$('body > section > h1').forEach(function(h1) {
contents: {
tag: 'a',
properties: {
href: '#' + (h1.id || section.id)
href: window.location.pathname + '#' + (h1.id || section.id)
},
contents: text
},
Expand Down

0 comments on commit 583c405

Please sign in to comment.