diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 2c1fd20..836ca88 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -879,21 +879,6 @@ int main(int argc, char **argv) { } /* Compute the Welcome HTML */ - string welcomeBooksCss = "" -""; - string welcomeBooksHtml = "" "
"; for (itr = booksIds.begin(); itr != booksIds.end(); ++itr) { @@ -904,8 +889,8 @@ int main(int argc, char **argv) { "" "
" "
" - "
" + currentBook.title + "
" - "
" + currentBook.description + "
" + "
" + currentBook.title + "
" + "
" + currentBook.description + "
" "
" "" + kiwix::beautifyInteger(atoi(currentBook.articleCount.c_str())) + " articles, " + kiwix::beautifyInteger(atoi(currentBook.mediaCount.c_str())) + " medias" "
" @@ -917,8 +902,7 @@ int main(int argc, char **argv) { welcomeBooksHtml += "" "
"; - welcomeHTML = replaceRegex(replaceRegex(RESOURCE::home_html_tmpl, welcomeBooksCss, "__BOOKS_STYLE__"), welcomeBooksHtml, "__BOOKS__"); - + welcomeHTML = replaceRegex(RESOURCE::home_html_tmpl, welcomeBooksHtml, "__BOOKS__"); #ifndef _WIN32 /* Fork if necessary */ diff --git a/static/server/home.html.tmpl b/static/server/home.html.tmpl index 0a7d2b8..d560996 100644 --- a/static/server/home.html.tmpl +++ b/static/server/home.html.tmpl @@ -7,7 +7,25 @@ - __BOOKS_STYLE__ +