From dac8d711d1481a1b4e24b01db89e706756a58550 Mon Sep 17 00:00:00 2001 From: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com> Date: Fri, 1 Oct 2021 20:08:39 +0800 Subject: [PATCH] Prevent random description in Google Search results for "odysee" (#7206) ## Issue 7166 improve search metadata Depending on the search term and timing, Google extracts data from the sidebar or page content to use as the search-result description. ## Change Defined `description` (on top of the existing `og:description` and `twitter:description`. While I couldn't find a definitive doc saying that this is the solution, this is present in all other sites (and matches their description in a Google Search results). --- web/src/html.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/html.js b/web/src/html.js index ca144ca5d..ba39f2b83 100644 --- a/web/src/html.js +++ b/web/src/html.js @@ -78,6 +78,7 @@ function buildOgMetadata(overrideOptions = {}) { const cleanDescription = removeMd(description || SITE_DESCRIPTION); const head = `