summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/weblog.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-25 12:38:52 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-25 12:38:52 +0200
commitb2c34d03399978a3d0838ee7ed92c760e7908721 (patch)
treef82ffce6d1757466accb11e8e2ab23870303516c /plugins/weblog/weblog.cpp
parentc794e32492362bdb6c5e01da12725e51053259c8 (diff)
weblog: Added keywords and title to generated pages
Diffstat (limited to 'plugins/weblog/weblog.cpp')
-rw-r--r--plugins/weblog/weblog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/weblog/weblog.cpp b/plugins/weblog/weblog.cpp
index 7ace0fb..07b6447 100644
--- a/plugins/weblog/weblog.cpp
+++ b/plugins/weblog/weblog.cpp
@@ -248,7 +248,11 @@ namespace {
std::string s = ""s)
: mGetRequestParam(GetRequestParam)
, mContents(s)
- , mHeader("<!DOCTYPE html><html><head><meta charset=\"utf-8\"/></head><body>")
+ , mHeader("<!DOCTYPE html><html><head>"
+ "<meta charset=\"utf-8\"/>"
+ "<title>" + GetRequestParam("WEBLOG_NAME") + "</title>"
+ "<meta name=\"keywords\" content=\"" + GetRequestParam("WEBLOG_KEYWORDS") + "\"/>"
+ "</head><body>")
, mFooter("<br/><br/><br/><a href=\"" + mGetRequestParam("plugin_path") + "/impressum.html\">Impressum, Datenschutzerklärung</a></body></html>")
{
}