From 1cc6dd349e6d7ddf84a470154252b840e4ea7f6e Mon Sep 17 00:00:00 2001 From: Ivan Andreev Date: Tue, 15 Jun 2021 23:32:45 +0300 Subject: [PATCH] Add google search widget to rclone.org --- docs/layouts/_default/baseof.html | 1 + docs/layouts/chrome/navbar.html | 5 +++++ docs/static/js/search.js | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 docs/static/js/search.js diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html index c5670e720..0e2ff7846 100644 --- a/docs/layouts/_default/baseof.html +++ b/docs/layouts/_default/baseof.html @@ -57,5 +57,6 @@ + diff --git a/docs/layouts/chrome/navbar.html b/docs/layouts/chrome/navbar.html index 749e05d06..2c4533cd1 100644 --- a/docs/layouts/chrome/navbar.html +++ b/docs/layouts/chrome/navbar.html @@ -113,5 +113,10 @@ Donate +
+ + + +
diff --git a/docs/static/js/search.js b/docs/static/js/search.js new file mode 100644 index 000000000..1507f9a42 --- /dev/null +++ b/docs/static/js/search.js @@ -0,0 +1,4 @@ +function on_search() { + document.search_form.q.value = document.search_form.words.value + " -site:forum.rclone.org"; + return true; +}