diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | plugins/weblog/weblog.cpp | 6 | ||||
-rw-r--r-- | webserver.conf | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 64bc601..dc8df04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +webserver (1.3) unstable; urgency=medium + + * Updated weblog + + -- Roland Reichwein <rr@antcom.de> Sat, 25 Apr 2020 12:35:44 +0200 + webserver (1.2) unstable; urgency=medium * Added Weblog module 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>") { } diff --git a/webserver.conf b/webserver.conf index 4aa0daa..52075a2 100644 --- a/webserver.conf +++ b/webserver.conf @@ -35,6 +35,8 @@ <plugin>weblog</plugin> <target>/home/ernie/testblog</target> <WEBLOG_NAME>Roland Reichweins Blog</WEBLOG_NAME> + <WEBLOG_DESCRIPTION>Roland Reichweins Blog</WEBLOG_DESCRIPTION> + <WEBLOG_KEYWORDS>Roland Reichwein, Blog</WEBLOG_KEYWORDS> </path> <path requested="/cgi-bin"> <plugin>cgi</plugin> |