summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html1
-rw-r--r--templates/packages/opensearch.xml13
2 files changed, 14 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index bbdfe74a..39b2a625 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -7,6 +7,7 @@
<link rel="stylesheet" type="text/css" href="/media/arch.css" />
<link rel="icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" />
+ <link rel="search" type="application/opensearchdescription+xml" href="/opensearch/packages/" title="Arch Linux Packages" />
{% block head %}
{% endblock %}
</head>
diff --git a/templates/packages/opensearch.xml b/templates/packages/opensearch.xml
new file mode 100644
index 00000000..711b36a2
--- /dev/null
+++ b/templates/packages/opensearch.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName>Arch Linux Packages</ShortName>
+ <Description>Search the Arch Linux package repositories.</Description>
+ <Tags>linux archlinux package software</Tags>
+ <Image height="16" width="16" type="image/x-icon">{{domain}}/media/favicon.ico</Image>
+ <Language>en-us</Language>
+ <InputEncoding>UTF-8</InputEncoding>
+ <OutputEncoding>UTF-8</OutputEncoding>
+ <Query role="example" searchTerms="initscripts"/>
+ <Url type="text/html" template="{{domain}}/packages/?q={searchTerms}"/>
+ <Url rel="self" type="application/opensearchdescription+xml" template="{{domain}}/opensearch/packages/"/>
+</OpenSearchDescription>