diff --git a/apps/paste/app.rc b/apps/paste/app.rc index 8b91ff9..af0c76d 100755 --- a/apps/paste/app.rc +++ b/apps/paste/app.rc @@ -33,8 +33,7 @@ fn wercpaste_init { } fn begforpaste { - echo '

Pastebin

-
+ echo '

pasted data is not publically indexed


@@ -44,4 +43,3 @@ fn begforpaste {
' } - diff --git a/sites/werc.cat-v.org/apps/duckduckgo/index.md b/sites/werc.cat-v.org/apps/duckduckgo/index.md new file mode 100644 index 0000000..be1cebe --- /dev/null +++ b/sites/werc.cat-v.org/apps/duckduckgo/index.md @@ -0,0 +1,39 @@ +duckduckgo - Simple sitesearch using DuckDuckGo.com +=================================== + +duckduckgo is a very simple app that allows you to redirect a path +(by default /_search/) to a query to duckduckgo.com restricted to +your site. + +Currently, to change that path requires editing the app. In the +future, the path will be a configuration option. + +Configuration +------------- + +First, create the search path and the _werc directory under it: + +; mkdir -p /www/werc/sites/MYSITE/_search/_werc/ + +Then, enable the duckduckgo app in that directory: + +echo 'conf_enable_duckduckgo' > /www/werc/sites/MYSITE/_search/_werc/config + +Next, deploy the search form somewhere on your site. This example puts +it in your footer: + +mkdir -p /www/werc/sites/MYSITE/_werc/lib/ +cp /www/werc/apps/search/footer.inc.sample /www/werc/sites/MYSITE/_werc/lib/footer.inc + +Demo +---- + +For a demo of this app, see the footer of your favorite cat-v.org site. + +TODO +---- + +* Make the search path a configuration option +* Provide a template for non-footer deployment +* Enable the search path itself to serve a search form to GET requests +