diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 27d441a..d65922d 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -497,18 +497,15 @@ int main(int argc, char **argv) { if (!currentBook.path.empty()) { welcomeBooksHtml += "

" + currentBook.title + "

\ \ - \ + \ \ - \
icon
" + currentBook.description + - "" + - " \ - \ - \ + "
Size: " + "" + - "Created:
Author:Language:
Publisher:
" + + " \ + \ + \
Size: " + beautifyInteger(atoi(currentBook.size.c_str())) + "MB (" + beautifyInteger(atoi(currentBook.articleCount.c_str())) + " articles, " + beautifyInteger(atoi(currentBook.mediaCount.c_str())) + " medias) \ + Created: " + currentBook.date + "
Author: " + currentBook.creator + "Language: " + currentBook.language + "
Publisher: " + (currentBook.publisher.empty() ? "unknown" : currentBook.publisher ) + "
\
\ - \ -
"; } } diff --git a/static/server/home.html.tmpl b/static/server/home.html.tmpl new file mode 100644 index 0000000..b1a7714 --- /dev/null +++ b/static/server/home.html.tmpl @@ -0,0 +1,21 @@ + + + + Welcome to Kiwix Server + + + + + + + +
+ __BOOKS__ +
+ + +