summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2008-10-10 00:13:19 +0200
committerJoey Hess <joey@kodama.kitenet.net>2008-10-10 17:05:02 -0400
commitf9957d11ed3674b5c2ff7ba7c234bed7cb036b5f (patch)
treeab5a3f746b7584c5bf5389d5c95fddd0a42fec12 /templates
parent61b37a3d73d7777e32fcc6aaa45699581494969d (diff)
google plugin: Use google.com to search the local site.
Google allows has a nice feature, sitesearch, that allows anyone to limit search results to a specific site. Obviously, this feature can be used to provide a search engine for the local ikiwiki site without the need to install any additional software. Just enable the 'google' plugin and make sure that --url uses the proper hostname. Thanks to Joey for helping to get the Perl implementation right.
Diffstat (limited to 'templates')
-rw-r--r--templates/googleform.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/googleform.tmpl b/templates/googleform.tmpl
new file mode 100644
index 000000000..523cff001
--- /dev/null
+++ b/templates/googleform.tmpl
@@ -0,0 +1,6 @@
+<form method="get" action="http://www.google.com/search" id="searchform">
+ <div>
+ <input name="sitesearch" value="<TMPL_VAR SITEFQDN>" type="hidden">
+ <input name="q" value="" id="searchbox" size="16" maxlength="255" type="text">
+ </div>
+</form>