Skip to content

Commit

Permalink
fixed google search
Browse files Browse the repository at this point in the history
  • Loading branch information
mstreuhofer committed Jan 8, 2015
1 parent 46a57f7 commit cc15da5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/_includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


{% if SEARCH_BOX %}
<form action="{{ SITESEARCH|default('//google.com/search') }}" method="get">
<form action="{{ SITESEARCH|default('https://www.google.com/search') }}" method="get">
<fieldset role="search">
{% if 'duckduckgo.com' in SITESEARCH|lower %}
<input type="hidden" name="sites" value="{{SITEURL|replace('https://','')|replace('http://','') }}" />
<input type="hidden" name="sites" value="{{ SITEURL|replace('https://','')|replace('http://','') }}" />
{% else %}
<input type="hidden" name="q" value="site:{{SITEURL|replace('https://','')|replace('http://','') }}" />
<input type="hidden" name="sitesearch" value="{{ SITEURL|replace('https://','')|replace('http://','') }}">
{% endif %}
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
Expand Down

0 comments on commit cc15da5

Please sign in to comment.