@@ -106,7 +106,6 @@ function debounce(func, wait) {
106106// maximum sum. If there are multiple maximas, then get the last one.
107107// Enclose the terms in <b>.
108108function makeTeaser(body, terms) {
109− console.log("make teaser");
110109 var TERM_WEIGHT = 40;
111110 var NORMAL_WORD_WEIGHT = 2;
112111 var FIRST_WORD_WEIGHT = 8;
@@ -225,7 +224,7 @@ function formatSearchResultTitle(path) {
225224 // last directory is in 2nd to last element of array
226225 var lastPartTitle = pathArray[pathArray.length-2].replace(/-/g,' ');
227226
228− var fullTitle = firstPartTitle + '<span class="gray90">' + ' / ' + lastPartTitle + '</span>';
227+ var fullTitle = firstPartTitle + '<span class="gray90 inline-block pl2">' + ' / ' + lastPartTitle + '</span>';
229228
230229 return fullTitle;
231230}
@@ -236,18 +235,18 @@ function formatSearchResultItem(item, terms) {
236235 li.appendChild(createA);
237236 var teaserTitle = formatSearchResultTitle(item.ref);
238237 li.classList.add("search-results__item");
238+ li.classList.add("ph3");
239239 var hrefA = item.ref;
240240 createA.setAttribute('href', hrefA);
241− createA.setAttribute('class','no-underline block pl6 pv2');
241+ createA.setAttribute('class','no-underline block pl6 pv3');
242242 createA.innerHTML = `<span class="fs45 capitalize gray30">${teaserTitle}</span>`;
243− createA.innerHTML += `<div class="fs35 gray30">${makeTeaser(item.doc.body, terms)}</div>`;
243+ createA.innerHTML += `<span class='pr7 fs5 none float-right'>→</span>`;
244+ createA.innerHTML += `<div class="fs35 gray30 truncate mr10">${makeTeaser(item.doc.body, terms)}</div>`;
244245 return li;
245246}
246247
247248function initSearch() {
248− console.log("init search");
249249 var searchInput = document.getElementById("search");
250−
251250 if (!searchInput) {
252251 return;
253252 }
@@ -256,7 +255,6 @@ function initSearch() {
256255 var searchResultsHeader = document.querySelector(".search-results__header");
257256 var searchResultsItems = document.querySelector(".search-results__items");
258257 var MAX_ITEMS = 200;
259−
260258 var options = {
261259 bool: "AND",
262260 expand: true, // turn on partial word search
@@ -267,7 +265,6 @@ function initSearch() {
267265 };
268266 var currentTerm = "";
269267 var index = elasticlunr.Index.load(window.searchIndex);
270−
271268 // toggle search window
272269 var toggleSearchWindow = document.getElementById('js-search-window-toggle');
273270 var bodyEl = document.body;
@@ -290,11 +287,9 @@ function initSearch() {
290287 }
291288 })
292289 }
293−
294290 // when typing
295291 searchInput.addEventListener("keyup", debounce(function() {
296292 searchResultsHeader.value = "";
297−
298293 var term = searchInput.value.trim();
299294
300295 /*