aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2020-04-27 16:53:13 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2020-04-27 16:53:13 +0000
commit184d4418abee2fe97ce93c3d23955033b03c7170 (patch)
tree655e84c990f176098369f69757a6f23a872c6314 /share
parent70057e443be0c285c07fb2a519b4c54798fdc131 (diff)
www.FreeBSD.org: fix search box
This is a quick fix (or workaround) for the search function of www.freebsd.org. It adds the correct duckduckgo "site:" parameters for the freebsd.org sites we want to search for the keyword. Reviewed by: bcr, allanjude Differential Revision: https://reviews.freebsd.org/D24590
Notes
svn path=/head/; revision=54076
Diffstat (limited to 'share')
-rw-r--r--share/xml/header.ent4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/xml/header.ent b/share/xml/header.ent
index 05ee4b90f3..d375d59787 100644
--- a/share/xml/header.ent
+++ b/share/xml/header.ent
@@ -64,9 +64,9 @@
<!ENTITY header2.searchbox '
<div id="search" xmlns="http://www.w3.org/1999/xhtml">
- <form method="get" id="search-form" action="https://duckduckgo.com/">
+ <form method="get" id="search-form" action="https://duckduckgo.com/"
+ onsubmit="document.getElementById(&#39;words&#39;).value+=&#39; site: www.FreeBSD.org site: docs.FreeBSD.org site: lists.FreeBSD.org site: wiki.FreeBSD.org site: forums.FreeBSD.org&#39;">
<h2 class="blockhide"><label for="words">&header2.word.search;</label></h2>
- <input type="hidden" name="sites" value="www.FreeBSD.org,docs.FreeBSD.org,lists.FreeBSD.org,wiki.FreeBSD.org,forums.FreeBSD.org" />
<input type="hidden" name="ka" value="v" />
<input type="hidden" name="kt" value="v" />
<input type="hidden" name="kh" value="1" />