on master help sign in
Merge branch 'search-bar-release' of github.com:urbit/urbit.org into search-bar-release
b345f06Morgan Sutherland
content/posts/2016-5-16-roadmap.md+1
@@ -3,6 +3,7 @@ title = "~2016.5.16 Urbit Roadmap 2016"
3date = 2016-05-16
3date = 2016-05-16
4author = "Curtis Yarvin"
4author = "Curtis Yarvin"
5description = "Our near-term goals for the Urbit community, documentation, maturity, utility and governance."
5description = "Our near-term goals for the Urbit community, documentation, maturity, utility and governance."
6+search = false
6[taxonomies]
7[taxonomies]
7posts = ["Updates"]
8posts = ["Updates"]
8+++
9+++
content/posts/_index.md+1
@@ -1,4 +1,5 @@
1+++
1+++
2render = false
2render = false
3sort_by = "date"
3sort_by = "date"
4+in_search_index = false
4+++
5+++
static/scripts.js+1−16
@@ -48,20 +48,6 @@ if (toggleContentNav !== null) {
48 }
48 }
49}
49}
50
50
51−/*function initToggleMenu() {
52− var menu = document.querySelector(".menu");
53− var menuIcon = document.querySelector(".menu-icon");
54− var page = document.querySelector(".page");
55− menuIcon.addEventListener("click", function() {
56− menu.classList.toggle("menu-hidden");
57− page.classList.toggle("page-without-menu");
58− });
59−}*/
60−
61−//
62− // hotkeys
63−//
64−
65function initHotKeys() {
51function initHotKeys() {
66
52
67 var bodyEl = document.body;
53 var bodyEl = document.body;
@@ -117,7 +103,6 @@ function debounce(func, wait) {
117 };
103 };
118}
104}
119
105
120−// Taken from mdbook
121// The strategy is as follows:
106// The strategy is as follows:
122// First, assign a value to each word in the document:
107// First, assign a value to each word in the document:
123// Words that correspond to search terms (stemmer aware): 40
108// Words that correspond to search terms (stemmer aware): 40
@@ -245,7 +230,7 @@ function formatSearchResultTitle(path) {
245
230
246 var fullTitle = firstPartTitle + ' / ' + '<span class="search-results__item__title__slug-end">' + lastPartTitle + '</span>';
231 var fullTitle = firstPartTitle + ' / ' + '<span class="search-results__item__title__slug-end">' + lastPartTitle + '</span>';
247
232
248− return fullTitle;
233+ return fullTitle;
249}
234}
250
235
251function formatSearchResultItem(item, terms) {
236function formatSearchResultItem(item, terms) {