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 = ({
1818 facebook,
1919 pageTranslations = null ,
2020 pageVersions = null ,
21- version = LATEST_VERSION ,
2221} = { } ) => {
2322 const {
2423 site : {
@@ -49,11 +48,6 @@ export const SEO = ({
4948 const currentUrl = slug && slug !== '*' ? getPageHref ( docs , slug ) : docs ;
5049 const currentRobotsContent = useRef ( 'index, follow' ) ;
5150 let versionedCanonicalUrl = currentUrl ;
52- let currentLanguage = 'en' ;
53-
54- if ( ( slug && slug . startsWith ( 'es/' ) ) || ( slug && slug . startsWith ( '/es/' ) ) ) {
55- currentLanguage = 'es' ;
56- }
5751
5852 // set canonical path to latest version URL if it's available
5953 if ( pageVersions && typeof pageVersions [ LATEST_VERSION ] !== 'undefined' ) {
@@ -125,8 +119,7 @@ export const SEO = ({
125119 < meta name = { 'twitter:card' } content = { 'summary' } />
126120 < meta name = { 'twitter:creator' } content = { authorTwitterAccount } />
127121
128- < meta name = "docsearch:language" content = { currentLanguage } />
129- < meta name = "docsearch:version" content = { version } />
122+ < meta name = "category" content = "Documentation" />
130123
131124 { /* Canonical links for versioned pages */ }
132125 < link href = { versionedCanonicalUrl } rel = "canonical" />
You can’t perform that action at this time.
0 commit comments