@@ -24,7 +24,7 @@ import Adopters from './adopters';
24
24
import Members from './members' ;
25
25
26
26
//---------- HEAD TAGS
27
- const HeadTags : FunctionComponent < { title ?: string , description ?: string , keywords ?: string , url ?: string , imageUrl ?: string , type ?: string } > = ( props ) => {
27
+ const HeadTags : FunctionComponent < { title ?: string , description ?: string , keywords ?: string , url ?: string , imageUrl ?: string } > = ( props ) => {
28
28
const handleChangeClientState = ( newState : any , addedTags : HelmetTags , removedTags : HelmetTags ) : void => {
29
29
if ( addedTags . metaTags ) {
30
30
addedTags . metaTags . forEach ( ( value : HTMLMetaElement ) => {
@@ -36,15 +36,14 @@ const HeadTags: FunctionComponent<{ title?: string, description?: string, keywor
36
36
} ;
37
37
38
38
const twitterCard = props . imageUrl ? 'summary_large_image' : 'summary' ;
39
- const type = props . type || 'website' ;
40
39
return < Helmet onChangeClientState = { handleChangeClientState } >
41
40
< title > { props . title } </ title >
42
41
43
42
{ /* SEO Meta Tags */ }
44
43
< meta name = 'description' content = { props . description } />
45
44
< meta name = 'keywords' content = { props . keywords } />
46
45
< meta property = 'og:url' content = { props . url } />
47
- < meta property = 'og:type' content = { type } />
46
+ < meta property = 'og:type' content = 'website' />
48
47
< meta property = 'og:title' content = { props . title } />
49
48
< meta property = 'og:description' content = { props . description } />
50
49
< meta property = 'og:image' content = { props . imageUrl } />
@@ -79,7 +78,7 @@ const ExtensionHeadTags: FunctionComponent<{ extension?: Extension, pageSettings
79
78
let description : string | undefined ;
80
79
let keywords : string | undefined ;
81
80
if ( props . extension ) {
82
- title = ( props . extension . displayName || props . extension . name ) + title ;
81
+ title = ( props . extension . displayName ?? props . extension . name ) + title ;
83
82
url += `${ props . extension . namespace } /${ props . extension . name } ` ;
84
83
description = props . extension . description ;
85
84
// extension description can be up to 2048 characters, truncate it.
0 commit comments