From 738a51773886c243421aebd56d14a2a581f911a5 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 7 Dec 2017 12:36:18 -0800 Subject: [PATCH] added handlebars helper for common header tags --- helpers/handlebarsHelpers.js | 4 ++++ views/layouts/channel.handlebars | 10 ++-------- views/layouts/main.handlebars | 10 ++-------- views/layouts/show.handlebars | 8 +------- views/layouts/showlite.handlebars | 12 +++--------- 5 files changed, 12 insertions(+), 32 deletions(-) diff --git a/helpers/handlebarsHelpers.js b/helpers/handlebarsHelpers.js index 0af35749..d2258e03 100644 --- a/helpers/handlebarsHelpers.js +++ b/helpers/handlebarsHelpers.js @@ -2,6 +2,10 @@ const Handlebars = require('handlebars'); const config = require('../config/speechConfig.js'); module.exports = { + placeCommonHeaderTags () { + const headerBoilerplate = `Spee.ch`; + return new Handlebars.SafeString(headerBoilerplate); + }, googleAnalytics () { const googleApiKey = config.analytics.googleId; const gaCode = `