Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
58 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,5 @@ | |||
{% if site.google_custom_search %} | {% if site.google_custom_search %} | ||
<form action="/search" method="get"> | <form action="/search" method="get"> | ||
<input type="hidden" value="{{ site.google_custom_search }}" name="cx"/> | <input class="search" id="search-query" type="text" name="q" results="0" placeholder="Search"/> | ||
<input class="search" type="text" name="q" results="0" placeholder="Search"/> | |||
</form> | </form> | ||
{% endif %} | {% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,23 +1,32 @@ | |||
--- | --- | ||
layout: default | layout: default | ||
exclude_from_search: true | |||
--- | --- | ||
|
|
||
<div id="search-container"> | <div id="search-container"> | ||
<script> | <div class="entries"> | ||
(function() { | </div> | ||
var cx = '010245880960712892902:tnjd4ryb3ci'; | |||
var gcse = document.createElement('script'); | |||
gcse.type = 'text/javascript'; | |||
gcse.async = true; | |||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + | |||
'//cse.google.com/cse.js?cx=' + cx; | |||
var s = document.getElementsByTagName('script')[0]; | |||
s.parentNode.insertBefore(gcse, s); | |||
})(); | |||
</script> | |||
<gcse:searchresults-only> | |||
<div class="spinner-wrapper"> | |||
<div class="spinner"></div> | |||
</div> | |||
</gcse:searchresults-only> | |||
</div> | </div> | ||
|
|||
<script type="text/javascript"> | |||
$(function() { | |||
$('#search-query').focus().lunrSearch({ | |||
indexUrl : '/javascripts/index.json', // url for the .json file containing search index data | |||
results : '#search-container', // selector for containing search results element | |||
template : '#search-results-template', // selector for Mustache.js template | |||
}); | |||
}); | |||
</script> | |||
|
|||
|
|||
{% raw %} | |||
<script id="search-results-template" type="text/mustache"> | |||
<ul> | |||
{{#entries}} | |||
<li> | |||
<a href="{{url}}">{{title}}</a> – {{#date}}<small><time datetime="{{pubdate}}" pubdate>{{displaydate}}</time></small>{{/date}} | |||
</li> | |||
{{/entries}} | |||
</ul> | |||
</script> | |||
{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters