aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/mod-package-search.cxx3
-rw-r--r--mod/options.cli6
2 files changed, 7 insertions, 2 deletions
diff --git a/mod/mod-package-search.cxx b/mod/mod-package-search.cxx
index 5654427..df9e3d1 100644
--- a/mod/mod-package-search.cxx
+++ b/mod/mod-package-search.cxx
@@ -86,6 +86,7 @@ handle (request& rq, response& rs)
const size_t res_page (options_->search_results ());
const dir_path& root (options_->root ());
+ const string& title (options_->search_title ());
params::package_search params;
@@ -106,8 +107,6 @@ handle (request& rq, response& rs)
? ""
: "?q=" + web::mime_url_encode (squery));
-
- static const string title ("Packages");
xml::serializer s (rs.content (), title);
s << HTML
diff --git a/mod/options.cli b/mod/options.cli
index ba8b37b..f422773 100644
--- a/mod/options.cli
+++ b/mod/options.cli
@@ -143,6 +143,12 @@ namespace brep
//
class package_search: search, db, page, module
{
+ string search-title = "Packages"
+ {
+ "<text>",
+ "Package search page title. It is placed inside XHTML5 <title>
+ element."
+ }
};
class package_details: package, search, db, page, module