@mjhls/mjh-framework 1.0.859-beta.0 → 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 -1
- package/dist/esm/View.js +6 -1
- 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,7 +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 },
|
|
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 });
|
|
514
519
|
}
|
|
515
520
|
return null;
|
|
516
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,7 +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 },
|
|
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 });
|
|
508
513
|
}
|
|
509
514
|
return null;
|
|
510
515
|
}
|