diff --git a/core/server/helpers/ghost_head.js b/core/server/helpers/ghost_head.js
index db50178d52..ebec5a4167 100644
--- a/core/server/helpers/ghost_head.js
+++ b/core/server/helpers/ghost_head.js
@@ -104,6 +104,10 @@ function ghost_head(options) {
if (context) {
// head is our main array that holds our meta data
+ if (metaData.metaDescription && metaData.metaDescription.length > 0) {
+ head.push('');
+ }
+
head.push('');
head.push('');
diff --git a/core/test/unit/server_helpers/ghost_head_spec.js b/core/test/unit/server_helpers/ghost_head_spec.js
index 461ad905ab..1ddccc0da2 100644
--- a/core/test/unit/server_helpers/ghost_head_spec.js
+++ b/core/test/unit/server_helpers/ghost_head_spec.js
@@ -72,6 +72,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.not.match(//);
@@ -88,6 +89,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -141,6 +143,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -187,6 +190,7 @@ describe('{{ghost_head}} helper', function () {
should.exist(rendered);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -229,6 +233,7 @@ describe('{{ghost_head}} helper', function () {
should.exist(rendered);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -269,8 +274,9 @@ describe('{{ghost_head}} helper', function () {
).then(function (rendered) {
should.exist(rendered);
rendered.string.should.match(//);
- rendered.string.should.not.match(//);
- rendered.string.should.not.match(//);
+ rendered.string.should.not.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.not.match(//);
@@ -320,6 +327,7 @@ describe('{{ghost_head}} helper', function () {
should.exist(rendered);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -368,6 +376,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.not.match(//);
@@ -422,6 +431,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -501,6 +511,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.not.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -580,6 +591,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -657,6 +669,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -732,6 +745,7 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
+ rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
rendered.string.should.match(//);
@@ -791,12 +805,13 @@ describe('{{ghost_head}} helper', function () {
rendered.string.should.match(//);
rendered.string.should.not.match(/