From 2b139e15d408e0bd3c2d4c0801ecc3f0bb8744d6 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 4 Mar 2016 11:40:48 -0800 Subject: added duckduckgo search bar --- amber/layouts/_sidebar.html.haml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'amber/layouts') diff --git a/amber/layouts/_sidebar.html.haml b/amber/layouts/_sidebar.html.haml index 87a00f9..532a3c5 100644 --- a/amber/layouts/_sidebar.html.haml +++ b/amber/layouts/_sidebar.html.haml @@ -4,6 +4,15 @@ %li{:class => "#{item[:active]} level#{item[:level]}"} %a{:href => item[:href], :class => ''}= item[:label] +.sidebar-addendum + %br + %form#searchform(method="get" action="https://duckduckgo.com" onsubmit="document.forms.searchform.q.value = document.forms.searchform.query.value + ' site:leap.se'; true") + .input-group + %input.form-control(name="query" type="search") + .span.input-group-btn + %input.btn.btn-default(value="Search" type="submit") + %input(name="q" type="hidden") + -# .sidebar-addendum -# .locale-links -# - available_languages.each do |name, code, url| -- cgit v1.2.3