Browse Source

Cleanup made clean up title

gremlin 4 years ago
parent
commit
8d5550cc10
3 changed files with 2 additions and 8 deletions
  1. 0 7
      server.go
  2. 1 1
      templates/eliza.html
  3. 1 0
      templates/ivanka.html

+ 0 - 7
server.go

@@ -135,13 +135,6 @@ func (m *Main) Run() error {
 
 	e := echo.New()
 
-	//e.GET("/chatbot/:personality", personalityHandler)
-	// r.HandleFunc("/chatbot/{personality}", personalityHandler)
-	// http.Handle("/", r)
-
-	// fmt.Printf(" [*] %s ... Awaiting Conversations on port  %d\n", m.BotName, m.Port)
-
-	//	http.ListenAndServe(fmt.Sprintf(":%d", m.Port), nil)
 	var contentHandler = echo.WrapHandler(http.FileServer(http.FS(web)))
 	var contentRewrite = middleware.Rewrite(map[string]string{"/*": "/web/$1"})
 

+ 1 - 1
templates/eliza.html

@@ -14,7 +14,7 @@
     <link rel="stylesheet" href="/eliza/style.css">
     <link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
     <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
-
+    <title>{{.Bot}} - Welcome {{.GivenName}}</title>
 </head>
 
 <body>

+ 1 - 0
templates/ivanka.html

@@ -14,6 +14,7 @@
   <link rel="stylesheet" href="/ivanka/style.css">
   <link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
   <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
+  <title>{{.Bot}} - Welcome {{.GivenName}}</title>
 
 </head>