svn commit: r54076 - head/share/xml
Li-Wen Hsu
lwhsu at FreeBSD.org
Mon Apr 27 16:53:13 UTC 2020
Author: lwhsu (src,ports committer)
Date: Mon Apr 27 16:53:13 2020
New Revision: 54076
URL: https://svnweb.freebsd.org/changeset/doc/54076
Log:
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
Modified:
head/share/xml/header.ent
Modified: head/share/xml/header.ent
==============================================================================
--- head/share/xml/header.ent Mon Apr 27 12:30:58 2020 (r54075)
+++ head/share/xml/header.ent Mon Apr 27 16:53:13 2020 (r54076)
@@ -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('words').value+=' site: www.FreeBSD.org site: docs.FreeBSD.org site: lists.FreeBSD.org site: wiki.FreeBSD.org site: forums.FreeBSD.org'">
<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" />
More information about the svn-doc-all
mailing list