From 97a4f5fcabee8aab759bf19939fb4880dcf4e298 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 27 May 2021 17:00:19 -0400 Subject: [PATCH] Fix metadata and make thumbs work --- ui/constants/pages.js | 2 ++ web/src/category-metadata.js | 2 +- web/src/html.js | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/constants/pages.js b/ui/constants/pages.js index 2e36acda2..71dfe4ab0 100644 --- a/ui/constants/pages.js +++ b/ui/constants/pages.js @@ -8,6 +8,8 @@ exports.BACKUP = 'backup'; exports.CHANNEL = 'channel'; exports.DISCOVER = 'discover'; exports.BIG_HITS = 'big_hits'; +exports.MOVIES = 'movies'; +exports.MUSIC = 'music'; exports.COMMUNITY = 'community'; exports.ENLIGHTENMENT = 'enlightenment'; exports.FINANCE = 'finance'; diff --git a/web/src/category-metadata.js b/web/src/category-metadata.js index 33f9e5bfe..bef1e0726 100644 --- a/web/src/category-metadata.js +++ b/web/src/category-metadata.js @@ -28,7 +28,7 @@ module.exports.CATEGORY_METADATA = { description: 'Pew pew bzzz gaming on Odysee', image: 'https://spee.ch/category-gaming:5.jpg?quality=80&height=1200&width=627', }, - [PAGES.PRIMARY_CHEESE]: { + [PAGES.GENERAL]: { title: 'Cheese', description: 'Cheese is the answer to life, the universe, and everything. We have primo cheese on Odysee', image: 'https://spee.ch/category-primary:5.jpg?quality=80&height=1200&width=627', diff --git a/web/src/html.js b/web/src/html.js index ea5648297..454c18c2f 100644 --- a/web/src/html.js +++ b/web/src/html.js @@ -54,7 +54,7 @@ function getCategoryMeta(path) { // Normal metadata with option to override certain values // function buildOgMetadata(overrideOptions = {}) { - const { title, description } = overrideOptions; + const { title, description, image } = overrideOptions; const cleanDescription = removeMd(description || SITE_DESCRIPTION); const head = `${SITE_TITLE}\n` + @@ -62,13 +62,13 @@ function buildOgMetadata(overrideOptions = {}) { `\n` + `\n` + `\n` + - `\n` + + `\n` + '\n' + `\n` + `\n` + - `\n` + + `\n` + `\n` + '\n' + `` +