File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/components/shared/seo Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export const SEO = ({
18
18
facebook,
19
19
pageTranslations = null ,
20
20
pageVersions = null ,
21
- version = LATEST_VERSION ,
22
21
} = { } ) => {
23
22
const {
24
23
site : {
@@ -49,11 +48,6 @@ export const SEO = ({
49
48
const currentUrl = slug && slug !== '*' ? getPageHref ( docs , slug ) : docs ;
50
49
const currentRobotsContent = useRef ( 'index, follow' ) ;
51
50
let versionedCanonicalUrl = currentUrl ;
52
- let currentLanguage = 'en' ;
53
-
54
- if ( ( slug && slug . startsWith ( 'es/' ) ) || ( slug && slug . startsWith ( '/es/' ) ) ) {
55
- currentLanguage = 'es' ;
56
- }
57
51
58
52
// set canonical path to latest version URL if it's available
59
53
if ( pageVersions && typeof pageVersions [ LATEST_VERSION ] !== 'undefined' ) {
@@ -125,8 +119,7 @@ export const SEO = ({
125
119
< meta name = { 'twitter:card' } content = { 'summary' } />
126
120
< meta name = { 'twitter:creator' } content = { authorTwitterAccount } />
127
121
128
- < meta name = "docsearch:language" content = { currentLanguage } />
129
- < meta name = "docsearch:version" content = { version } />
122
+ < meta name = "category" content = "Documentation" />
130
123
131
124
{ /* Canonical links for versioned pages */ }
132
125
< link href = { versionedCanonicalUrl } rel = "canonical" />
You can’t perform that action at this time.
0 commit comments