summaryrefslogtreecommitdiffhomepage
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
parentc794e32492362bdb6c5e01da12725e51053259c8 (diff)
weblog: Added keywords and title to generated pages
-rw-r--r--debian/changelog6
-rw-r--r--plugins/weblog/weblog.cpp6
-rw-r--r--webserver.conf2
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>