diff --git a/config/speechConfig.js.example b/config/speechConfig.js.example index f485fb34..1d5ce951 100644 --- a/config/speechConfig.js.example +++ b/config/speechConfig.js.example @@ -22,4 +22,13 @@ module.exports = { files: { uploadDirectory: null, // enter file path to where uploads/publishes should be stored }, + site: { + name: 'Spee.ch', + host: 'https://spee.ch', + }, + publishing: { + defaultTitle : 'Spee.ch', + defaultThumbnail : 'https://spee.ch/assets/img/video_thumb_default.png', + defaultDescription: 'Open-source, decentralized image and video sharing.', + }, }; diff --git a/helpers/errorHandlers.js b/helpers/errorHandlers.js index 4a825399..9a5b24d1 100644 --- a/helpers/errorHandlers.js +++ b/helpers/errorHandlers.js @@ -21,7 +21,7 @@ module.exports = { } else { message = error.response; } - // check for spee.ch thrown errors + // check for thrown errors } else if (error.message) { status = 400; message = error.message; diff --git a/helpers/handlebarsHelpers.js b/helpers/handlebarsHelpers.js index d2258e03..8ae90462 100644 --- a/helpers/handlebarsHelpers.js +++ b/helpers/handlebarsHelpers.js @@ -1,13 +1,13 @@ const Handlebars = require('handlebars'); -const config = require('../config/speechConfig.js'); +const { site, analytics } = require('../config/speechConfig.js'); module.exports = { placeCommonHeaderTags () { - const headerBoilerplate = `