mirror of https://github.com/kiwix/libkiwix.git
Preparing for a single error page template
This commit is contained in:
parent
f4059f3faf
commit
d8a60db739
|
@ -106,7 +106,11 @@ HTTP404HtmlResponse::HTTP404HtmlResponse(const InternalServer& server,
|
|||
RESOURCE::templates::_404_html)
|
||||
{
|
||||
kainjow::mustache::list emptyList;
|
||||
this->m_data = kainjow::mustache::object{{"details", emptyList}};
|
||||
this->m_data = kainjow::mustache::object{
|
||||
{"PAGE_TITLE", "Content not found"},
|
||||
{"PAGE_HEADING", "Not Found"},
|
||||
{"details", emptyList}
|
||||
};
|
||||
}
|
||||
|
||||
HTTP404HtmlResponse& HTTP404HtmlResponse::operator+(UrlNotFoundMsg /*unused*/)
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
|
||||
<title>Content not found</title>
|
||||
<title>{{PAGE_TITLE}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Not Found</h1>
|
||||
<h1>{{PAGE_HEADING}}</h1>
|
||||
{{#details}}
|
||||
<p>
|
||||
{{{p}}}
|
||||
|
|
Loading…
Reference in New Issue