_layouts/search.html in fenton-jekyll-boilerplate-0.0.13 vs _layouts/search.html in fenton-jekyll-boilerplate-0.0.14
- old
+ new
@@ -5,15 +5,15 @@
<header>
<h1>{{ page.title }}</h1>
</header>
<div>
{{ content }}
- <form method="GET" action="{{ site.search_fallback_url }}" role="search" id="site-search" class="site-search note" autocomplete="off">
+ <form method="GET" action="{{ site.search_fallback_url | default: 'https://www.google.com/search' }}" role="search" id="site-search" class="site-search note" autocomplete="off">
<fieldset>
- <input type="hidden" name="{{ site.search_fallback_site }}" value="{{ site.url | prepend: 'site:' }}" />
+ <input type="hidden" name="{{ site.search_fallback_site | default: 'q' }}" value="{{ site.url | prepend: 'site:' }}" />
<div>
<label for="site-search-query">{{ 'search' | t: 'search_for' }}</label>
- <input type="text" name="{{ site.search_fallback_query }}" id="site-search-query" autofocus="autofocus" />
+ <input type="text" name="{{ site.search_fallback_query | default: 'q' }}" id="site-search-query" autofocus="autofocus" />
<button id="site-search-button" type="submit">{{ 'search' | t: 'submit' }}</button>
</div>
</fieldset>
</form>
<div id="site-search-results" data-title="{{ 'search' | t: 'results_title' }}" data-emptytitle="{{ 'search' | t: 'no_results_title' }}">