@mjhls/mjh-framework 1.0.859-beta.1 → 1.0.859-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/View.js +6 -6
- package/dist/esm/View.js +6 -6
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -501,6 +501,11 @@ function generateSchema(props) {
|
|
|
501
501
|
datePublished: published,
|
|
502
502
|
dateModified: _updatedAt,
|
|
503
503
|
inLanguage: 'en-US'
|
|
504
|
+
}, liveDomain && url && url.current && {
|
|
505
|
+
mainEntityOfPage: {
|
|
506
|
+
'@type': 'WebPage',
|
|
507
|
+
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
508
|
+
}
|
|
504
509
|
}, websiteTitle && liveDomain && logo && {
|
|
505
510
|
publisher: {
|
|
506
511
|
'@type': 'Organization',
|
|
@@ -510,12 +515,7 @@ function generateSchema(props) {
|
|
|
510
515
|
url: 'https://' + liveDomain + logo
|
|
511
516
|
}
|
|
512
517
|
}
|
|
513
|
-
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary },
|
|
514
|
-
mainEntityOfPage: {
|
|
515
|
-
'@type': 'WebPage',
|
|
516
|
-
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
517
|
-
}
|
|
518
|
-
}, authors && authors.length > 0 && { author: authors });
|
|
518
|
+
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
|
|
519
519
|
}
|
|
520
520
|
return null;
|
|
521
521
|
}
|
package/dist/esm/View.js
CHANGED
|
@@ -495,6 +495,11 @@ function generateSchema(props) {
|
|
|
495
495
|
datePublished: published,
|
|
496
496
|
dateModified: _updatedAt,
|
|
497
497
|
inLanguage: 'en-US'
|
|
498
|
+
}, liveDomain && url && url.current && {
|
|
499
|
+
mainEntityOfPage: {
|
|
500
|
+
'@type': 'WebPage',
|
|
501
|
+
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
502
|
+
}
|
|
498
503
|
}, websiteTitle && liveDomain && logo && {
|
|
499
504
|
publisher: {
|
|
500
505
|
'@type': 'Organization',
|
|
@@ -504,12 +509,7 @@ function generateSchema(props) {
|
|
|
504
509
|
url: 'https://' + liveDomain + logo
|
|
505
510
|
}
|
|
506
511
|
}
|
|
507
|
-
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary },
|
|
508
|
-
mainEntityOfPage: {
|
|
509
|
-
'@type': 'WebPage',
|
|
510
|
-
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
511
|
-
}
|
|
512
|
-
}, authors && authors.length > 0 && { author: authors });
|
|
512
|
+
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
|
|
513
513
|
}
|
|
514
514
|
return null;
|
|
515
515
|
}
|