diff --git a/.env.defaults b/.env.defaults index 4d3218a30..8abed1216 100644 --- a/.env.defaults +++ b/.env.defaults @@ -5,6 +5,8 @@ WEB_SERVER_PORT=1337 DOMAIN=lbry.tv URL=https://lbry.tv SITE_TITLE=lbry.tv +SITE_MOTTO=Content Freedom +SITE_DESCRIPTION=Meet LBRY, an open, free, and community-controlled content wonderland. LOGO_TITLE=LBRY LBRY_WEB_API=https://api.lbry.tv LBRY_WEB_STREAMING_API=https://cdn.lbryplayer.xyz diff --git a/config.js b/config.js index 4aee543b3..745c2b037 100644 --- a/config.js +++ b/config.js @@ -8,6 +8,8 @@ const config = { DOMAIN: process.env.DOMAIN, URL: process.env.URL, //lbry.tv', SITE_TITLE: process.env.SITE_TITLE, + SITE_MOTTO: process.env.SITE_MOTTO, + SITE_DESCRIPTION: process.env.SITE_DESCRIPTION, LBRY_WEB_API: process.env.LBRY_WEB_API, //api.lbry.tv', LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //cdn.lbryplayer.xyz', WELCOME_VERSION: process.env.WELCOME_VERSION, diff --git a/static/app-strings.json b/static/app-strings.json index 66a367130..8869a3e58 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1259,6 +1259,7 @@ "Email Preferences": "Email Preferences", "Opt out of any topics you don't want to receive email about.": "Opt out of any topics you don't want to receive email about.", "Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.", + "Delete Your Channel": "Delete Your Channel", "Remove from Blocked List": "Remove from Blocked List", "Are you sure you want to remove this from the list?": "Are you sure you want to remove this from the list?", "Cover": "Cover", diff --git a/web/.env.defaults b/web/.env.defaults index f486f5dd3..2d4d084a5 100644 --- a/web/.env.defaults +++ b/web/.env.defaults @@ -5,6 +5,8 @@ WEB_SERVER_PORT=1337 DOMAIN=lbry.tv URL=https://lbry.tv SITE_TITLE=lbry.tv +SITE_MOTTO=Content Freedom +SITE_DESCRIPTION=Meet LBRY, an open, free, and community-controlled content wonderland. LOGO_TITLE=lbry.tv LBRY_WEB_API=https://api.lbry.tv LBRY_WEB_STREAMING_API=https://cdn.lbryplayer.xyz diff --git a/web/src/html.js b/web/src/html.js index 234fc2369..e95fb6ba5 100644 --- a/web/src/html.js +++ b/web/src/html.js @@ -1,4 +1,4 @@ -const { URL } = require('../../config.js'); +const { URL, SITE_TITLE, SITE_DESCRIPTION, SITE_MOTTO } = require('../../config.js'); const { generateEmbedUrl, generateStreamUrl } = require('../../ui/util/web'); const PAGES = require('../../ui/constants/pages'); const { getClaim } = require('./chainquery'); @@ -8,6 +8,7 @@ const path = require('path'); let html = fs.readFileSync(path.join(__dirname, '/../dist/index.html'), 'utf8'); +module.exports = { insertToHead, buildBasicOgMetadata, getHtml }; function insertToHead(fullHtml, htmlToInsert) { return fullHtml.replace( /.*/s, @@ -38,15 +39,35 @@ function buildOgMetadata(overrideOptions = {}) { const head = '