<%
  var
    uri = (site.base_uri || '').replace(/^https?:\/\//, '');
-%>
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns:moz="http://www.mozilla.org/2006/browser/search/"
      xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName><%= uri %></ShortName>
  <Description>Search <%= uri %></Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Url method="get" type="text/html"
      template="https://duckduckgo.com/?q={searchTerms}+site%3A<%= uri %>&ia=web"/>
</OpenSearchDescription>
