Add path and path_natural sort orders
[ikiwiki.git] / IkiWiki / Plugin / google.pm
index 48ad4c8cea058f9a024bfdf99c01f5fcca8f4ca8..68cde261c66748c5d32475657986ce9d465fbbbf 100644 (file)
@@ -25,6 +25,10 @@ sub checkconfig () {
        if (! length $config{url}) {
                error(sprintf(gettext("Must specify %s when using the %s plugin"), "url", 'google'));
        }
+       
+       # This is a mass dependency, so if the search form template
+       # changes, every page is rebuilt.
+       add_depends("", "templates/googleform.tmpl");
 }
 
 my $form;
@@ -38,6 +42,7 @@ sub pagetemplate (@) {
                if (! defined $form) {
                        my $searchform = template("googleform.tmpl", blind_cache => 1);
                        $searchform->param(url => $config{url});
+                       $searchform->param(html5 => $config{html5});
                        $form=$searchform->output;
                }