Skip to content

Commit 0d68adc

Browse files
DRY sidebar
1 parent ec6db24 commit 0d68adc

File tree

7 files changed

+349
-384
lines changed

7 files changed

+349
-384
lines changed

Diff for: _config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ algolia:
6363
- h6
6464
- unordered(text)
6565
- unordered(tags)
66+
67+
excerpt_separator: <!-- excerpt-end -->

Diff for: _includes/layouts/insertSidebarElement.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
array.push({text: itemText, tag: item.prop("tagName"), hash: hash});
1111
});
1212

13-
$(".--sidebar-list").html(array.map(function(entry) {
13+
$("#nav_header_insertion_list").html(array.map(function(entry) {
1414
var text = entry.text.replace(/[^a-z0-9\s\.:\-\?\!\(\))]/gi, '');
1515
if(entry.tag.toLowerCase() < "h4"){
1616
return('<li class="--sidebar-item"><a href="#' + entry.hash + '">' + text + '</a></li>');

0 commit comments

Comments
 (0)