Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Revision:
2:14de8c14afd9
Parent:
0:f8998d10763e
Child:
11:84121d7b47e9
--- a/page.c	Sun Jan 28 13:34:11 2018 +0000
+++ b/page.c	Sun Jan 28 13:58:43 2018 +0000
@@ -5,15 +5,20 @@
 #include "ip4addr.h"
 #include "ip6addr.h"
 
-void PageAddHeader(const char* title, const char* style, const char* script)
+void PageAddHeader(const char* site, const char* title, const char* style, const char* script)
 {
     HttpAddText("<!DOCTYPE html>\r\n"
                      "<html>\r\n"
                      "<head>\r\n");
-    if (title)
+    if (site)
     {
         HttpAddText("   <title>");
-        HttpAddText(title);
+        HttpAddText(site);
+        if (title)
+        {
+            HttpAddText(" - ");
+            HttpAddText(title);
+        }
         HttpAddText("</title>\r\n");
     }
     HttpAddText("   <link rel='stylesheet' href='/base.css' type='text/css'/>\r\n");