Skip to content

Node.js based forum software built for the modern web

new header for meta title

Julian Lam1a104686acdf
diff --git a/nodebb b/nodebb
index 90ffe6d3c3..ab0192539f 100755
--- a/nodebb
+++ b/nodebb
@@ -1,4 +1,4 @@
#!/bin/bash
clear
echo "Launching NodeBB"
-supervisor --extensions 'node|js|tpl' app
+supervisor --extensions 'node|js|tpl' -- app $1
\ No newline at end of file
diff --git a/public/templates/admin/header.tpl b/public/templates/admin/header.tpl
index f73d6a2c5c..4c469f7ff1 100644
--- a/public/templates/admin/header.tpl
+++ b/public/templates/admin/header.tpl
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title></title>
+ <title>NodeBB Administration Panel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link id="base-theme" href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
diff --git a/public/templates/admin/settings.tpl b/public/templates/admin/settings.tpl
index c2ecb195eb..7697fc9b39 100644
--- a/public/templates/admin/settings.tpl
+++ b/public/templates/admin/settings.tpl
@@ -1,6 +1,14 @@
<h1>Settings</h1>
<hr />
+<h3>General Settings</h3>
+<div class="alert">
+ <form>
+ <label>Site Title</label>
+ <input type="text" placeholder="My Forum" data-field="title" />
+ </form>
+</div>
+
<form>
<h3>Privilege Thresholds</h3>
<div class="alert alert-notify">
diff --git a/public/templates/header.tpl b/public/templates/header.tpl
index 9f092070e1..2086f7c5d2 100644
--- a/public/templates/header.tpl
+++ b/public/templates/header.tpl
@@ -1,10 +1,12 @@
<!DOCTYPE html>
<html>
<head>
- <title>NodeBB</title>
+ <title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" CONTENT="NodeBB">
- <meta name="description" content="Node.js/Redis/Socket.io powered forums for a new generation">
+ <meta name="keywords" content="" />
+ <meta name="description" content="" />
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="{cssSrc}" rel="stylesheet" media="screen">
<link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/vendor/fontawesome/css/font-awesome.min.css">
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index f84a375506..21a0e17c5a 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -82,7 +82,10 @@
Auth.create_routes = function(app) {
var build_header = function() {
- return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' });
+ return templates['header'].parse({
+ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
+ title: global.config['title'] || 'NodeBB'
+ });
};
app.get('/logout', function(req, res) {
diff --git a/src/routes/user.js b/src/routes/user.js
index e65030e1af..b40660fef1 100644
--- a/src/routes/user.js
+++ b/src/routes/user.js
@@ -7,7 +7,10 @@ var user = require('./../user.js'),
(function(User) {
User.create_routes = function(app) {
var build_header = function() {
- return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' });
+ return templates['header'].parse({
+ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
+ title: global.config['title'] || 'NodeBB'
+ });
};
app.get('/uid/:uid', function(req, res) {
diff --git a/src/webserver.js b/src/webserver.js
index 9db1caa53d..1c23af81bb 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -23,7 +23,10 @@ var express = require('express'),
(function(app) {
var templates = null,
build_header = function() {
- return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' });
+ return templates['header'].parse({
+ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
+ title: global.config['title'] || 'NodeBB'
+ });
};
// Middlewares