on master help sign in
Merge branch 'search-bar-release' of github.com:urbit/urbit.org into search-bar-release
commitb345f06d123b528f4e101dfcc1e2b621e597e5a3 authorMorgan Sutherland <morgan@morgansutherland.com> dateTue 9 Jul 2019, 12:39 (7 years ago) parent6928ebbc41d59d
3 files changed+3−16
content/posts/2016-5-16-roadmap.md+1 content/posts/_index.md+1 static/scripts.js+1−16
content/posts/2016-5-16-roadmap.md+1
@@ -3,6 +3,7 @@ title = "~2016.5.16 Urbit Roadmap 2016"
33date = 2016-05-16
44author = "Curtis Yarvin"
55description = "Our near-term goals for the Urbit community, documentation, maturity, utility and governance."
6+search = false
67[taxonomies]
78posts = ["Updates"]
89+++
content/posts/_index.md+1
@@ -1,4 +1,5 @@
11+++
22render = false
33sort_by = "date"
4+in_search_index = false
45+++
static/scripts.js+1−16
@@ -48,20 +48,6 @@ if (toggleContentNav !== null) {
4848 }
4949}
5050
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−
6551function initHotKeys() {
6652
6753 var bodyEl = document.body;
@@ -117,7 +103,6 @@ function debounce(func, wait) {
117103 };
118104}
119105
120−// Taken from mdbook
121106// The strategy is as follows:
122107// First, assign a value to each word in the document:
123108// Words that correspond to search terms (stemmer aware): 40
@@ -245,7 +230,7 @@ function formatSearchResultTitle(path) {
245230
246231 var fullTitle = firstPartTitle + ' / ' + '<span class="search-results__item__title__slug-end">' + lastPartTitle + '</span>';
247232
248− return fullTitle;
233+ return fullTitle;
249234}
250235
251236function formatSearchResultItem(item, terms) {