Skip to content

Commit

Permalink
Added OpenSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
cetinajero committed Jan 16, 2018
1 parent a579565 commit 1e06157
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/head/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
<meta name="copyright" content="Copyright © {{ 'now' | date: "%Y" }} {{ site.author }}. All rights reserved." />
<meta name="generator" content="Jekyll" />
<link rel="icon" type="image/x-icon" href="/assets/img/common/favicon.ico" />
<link rel="search" href="/opensearch.xml" title="Search {{ site.title }}" type="application/opensearchdescription+xml" />
13 changes: 13 additions & 0 deletions opensearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: null
---
<?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>{{ site.title }}</ShortName>
<Description>Search {{ site.title }}</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image type="image/x-icon" width="16" height="16">/img/common/favicon.ico</Image>
<Url method="get" type="text/html"
template="http://www.google.com/search?q={searchTerms}+site%3A{{ site.url | remove_first:'http://' | remove_first:'https://' | remove_first:'www.' }}&amp;hl=en"/>
</OpenSearchDescription>

0 comments on commit 1e06157

Please sign in to comment.