From 3ee59ca3730aaaacb66ac26fed9fd1d72d033ae4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 1 May 2020 14:36:51 +0200 Subject: Added style sheet --- TODO | 1 - plugins/weblog/weblog.cpp | 14 ++++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 9fe3dc2..ecfba62 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,5 @@ Speed up config.GetPath weblog: link consistency check (cron?) -weblog: style: zitate Integrate into Debian: WNPP read: The socket was closed due to a timeout webbox: Info if not selected: all diff --git a/plugins/weblog/weblog.cpp b/plugins/weblog/weblog.cpp index 20c70b7..4ed468e 100644 --- a/plugins/weblog/weblog.cpp +++ b/plugins/weblog/weblog.cpp @@ -250,10 +250,13 @@ namespace { , mContents(s) , mHeader("" "" + "" "" + GetRequestParam("WEBLOG_NAME") + "" "" - "") - , mFooter("


Impressum, Datenschutzerklärung") + "" + "" + "
") + , mFooter("


") { } @@ -286,7 +289,8 @@ namespace { for (const auto& article: list) { std::string linkstart{""}; std::string linkend{""}; - htmlPage += "

"s + linkstart + article.subject + linkend + "

"s + article.date + "
"s; + htmlPage += "

"s + linkstart + article.subject + linkend + "

"s; + htmlPage += "
" + article.date + "
"s; auto sv{shortVersion(article.path)}; if (sv.size()) { @@ -327,7 +331,9 @@ namespace { if (it != metaData.end() && it->second == "text/plain") data = verbatimText(data); - HtmlPage htmlPage{GetRequestParam, "

"s + metaData.at("Subject") + "

"s + metaData.at("Date") + "

"s + data}; + HtmlPage htmlPage{GetRequestParam, "

"s + metaData.at("Subject") + "

" + "
" + metaData.at("Date") + "
" + "

"s + data}; return htmlPage; } catch (const std::exception& ex) { -- cgit v1.2.3