Skip to content

Commit 0c8d69b

Browse files
committed
fixing bug with living docs link on search results!
1 parent f4444b8 commit 0c8d69b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/_includes/editable.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<script>
3535
$(document).ready(function() {
3636

37+
{% unless page.not_editable %}
3738
var divs = $("#h1,h2,h3,h4");
3839
$.each(divs, function(i,e){
3940

@@ -59,6 +60,6 @@
5960
start += "</div></div>";
6061
$(e).append(start)
6162

62-
})
63+
}){% endunless %}
6364
});
6465
</script>

docs/pages/search.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Search
33
sitemap: false
44
permalink: /search
5+
not_editable: true
56
---
67

78
<p><span id="search-process">Loading</span> results <span id="search-query-container" style="display: none;">for "<strong id="search-query"></strong>"</span></p>

0 commit comments

Comments
 (0)