diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-29 22:36:23 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-29 22:36:23 +0000 |
commit | 5f1e79404588b9f2cbd8fc80d4eb00d7505085c6 (patch) | |
tree | 903c75fc8b07c536668e6b3d0d6b255abf6a43ed | |
parent | 0d9539d577886549b51d2bf70167db05f3f2514c (diff) |
fixes
-rw-r--r-- | IkiWiki/Render.pm | 7 | ||||
-rw-r--r-- | doc/templates.mdwn | 3 | ||||
-rw-r--r-- | templates/page.tmpl | 6 |
3 files changed, 11 insertions, 5 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 8375cfe7a..23f6b1c72 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -407,9 +407,10 @@ sub estcfg () { #{{{ ); print TEMPLATE $template->output; close TEMPLATE; - symlink("/usr/lib/estraier/estseek.cgi", - "$estdir/".basename($config{cgiurl})) || - error("symlink: $!"); + $cgi="$estdir/".basename($config{cgiurl}); + unlink($cgi); + symlink("/usr/lib/estraier/estseek.cgi", $cgi) || + error("symlink $cgi: $!"); } # }}} sub estcmd ($;@) { #{{{ diff --git a/doc/templates.mdwn b/doc/templates.mdwn index 6b9fc0218..e27a00a89 100644 --- a/doc/templates.mdwn +++ b/doc/templates.mdwn @@ -18,6 +18,9 @@ It ships with some basic templates which can be customised: page. * `templates/inlinepagetitle.tmpl` - Used for listing a page inline in a blog archive page. +* `estseek.conf` - Not a html template, this is actually a template for + a config file for the [[HyperEstraier]] search engine. If you like you + can read the [[HyperEstraier]] docs and configure it using this. If you like, you can add these to further customise it: diff --git a/templates/page.tmpl b/templates/page.tmpl index fb7383acb..c9ec2a34f 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -17,10 +17,12 @@ </h1> <TMPL_IF NAME="HYPERESTRAIERURL"> <form method="get" action="<TMPL_VAR HYPERESTRAIERURL>" id="searchform"> -<input type="text" name="phrase" value="" size="32" /> -<input type="submit" value="Search" /> +<div> +<input type="text" name="phrase" value="" size="16" /> <input type="hidden" name="enc" value="UTF-8" /> <input type="hidden" name="do" value="hyperestraier" /> +</div> +</form> </TMPL_IF> </div> |