Skip to content

Node.js based forum software built for the modern web

Testing adding of Meta Tags

Minami90b4d688f8ce
diff --git a/public/templates/admin/settings.tpl b/public/templates/admin/settings.tpl
index 68fbacd632..a872497faf 100644
--- a/public/templates/admin/settings.tpl
+++ b/public/templates/admin/settings.tpl
@@ -8,6 +8,8 @@
<input class="form-control" type="text" placeholder="Your Community Name" data-field="title" /><br />
<label>Site Description</label>
<input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br />
+ <label>Site Keywords</label>
+ <input type="text" class="form-control" placeholder="Keywords describing your community, comma-seperated" data-field="keywords" /><br />
<label>Imgur Client ID</label>
<input type="text" class="form-control" placeholder="Imgur ClientID for image uploads" data-field="imgurClientID" /><br />
<label>Maximum User Image Size</label>
diff --git a/src/install.js b/src/install.js
index 4f60f6203d..fe0b5169d1 100644
--- a/src/install.js
+++ b/src/install.js
@@ -41,10 +41,10 @@ var async = require('async'),
name: 'redis:password',
description: 'Password of your Redis database'
}, {
- name: 'bind_address',
- description: 'IP or Hostname to bind to',
- 'default': '0.0.0.0'
- }],
+ name: 'bind_address',
+ description: 'IP or Hostname to bind to',
+ 'default': '0.0.0.0'
+ }],
setup: function (callback) {
async.series([
function (next) {
diff --git a/src/webserver.js b/src/webserver.js
index ee87e0fa16..0a5374cdf5 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -54,6 +54,9 @@ var express = require('express'),
}, {
property: 'og:site_name',
content: meta.config.title || 'NodeBB'
+ }, {
+ property: 'og:keywords',
+ content: meta.config['keywords'] || ''
}],
metaString = utils.buildMetaTags(defaultMetaTags.concat(options.metaTags || [])),
templateValues = {