@mjhls/mjh-framework 1.0.1029-nofollow-test-v2 → 1.0.1029
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 +2 -18
- package/dist/esm/View.js +2 -18
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -2490,11 +2490,7 @@ var View = function View(props) {
|
|
|
2490
2490
|
),
|
|
2491
2491
|
metaDescriptionSanity ? React__default["default"].createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default["default"].createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2492
2492
|
React__default["default"].createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2493
|
-
passwordLock && React__default["default"].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2494
|
-
!passwordLock && (article.applyNoIndexTag || article.applyNoFollowTag) && React__default["default"].createElement('meta', {
|
|
2495
|
-
name: 'robots',
|
|
2496
|
-
content: article.applyNoIndexTag && article.applyNoFollowTag ? 'noindex, nofollow' : article.applyNoIndexTag && !article.applyNoFollowTag ? 'noindex' : 'nofollow'
|
|
2497
|
-
}),
|
|
2493
|
+
(passwordLock || article.applyNoIndexTag) && React__default["default"].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2498
2494
|
React__default["default"].createElement('meta', {
|
|
2499
2495
|
property: 'og:url',
|
|
2500
2496
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2537,16 +2533,7 @@ var View = function View(props) {
|
|
|
2537
2533
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default["default"].createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2538
2534
|
)
|
|
2539
2535
|
),
|
|
2540
|
-
!needInfiniteScroll ? React__default["default"].createElement(Article, _extends._extends({
|
|
2541
|
-
infiniteScroll: false,
|
|
2542
|
-
showRelatedArticles: showRelatedArticles,
|
|
2543
|
-
showDisqus: showDisqus,
|
|
2544
|
-
emailList: emailList,
|
|
2545
|
-
articleRecs: articleRecs
|
|
2546
|
-
}, props, {
|
|
2547
|
-
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null,
|
|
2548
|
-
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null
|
|
2549
|
-
})) : React__default["default"].createElement(ArticleQueue, _extends._extends({
|
|
2536
|
+
!needInfiniteScroll ? React__default["default"].createElement(Article, _extends._extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props, { showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null, showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null })) : React__default["default"].createElement(ArticleQueue, _extends._extends({
|
|
2550
2537
|
infiniteScroll: true,
|
|
2551
2538
|
showRelatedArticles: showRelatedArticles,
|
|
2552
2539
|
canonicalTag: canonicalTag,
|
|
@@ -2660,9 +2647,6 @@ View.returnGetInitialProps = function () {
|
|
|
2660
2647
|
if (x.applyNoIndexTag) {
|
|
2661
2648
|
article.applyNoIndexTag = true;
|
|
2662
2649
|
}
|
|
2663
|
-
if (x.applyNoFollowTag) {
|
|
2664
|
-
article.applyNoFollowTag = true;
|
|
2665
|
-
}
|
|
2666
2650
|
});
|
|
2667
2651
|
}
|
|
2668
2652
|
// check for disableAds flag on content category
|
package/dist/esm/View.js
CHANGED
|
@@ -2480,11 +2480,7 @@ var View = function View(props) {
|
|
|
2480
2480
|
),
|
|
2481
2481
|
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2482
2482
|
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2483
|
-
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2484
|
-
!passwordLock && (article.applyNoIndexTag || article.applyNoFollowTag) && React__default.createElement('meta', {
|
|
2485
|
-
name: 'robots',
|
|
2486
|
-
content: article.applyNoIndexTag && article.applyNoFollowTag ? 'noindex, nofollow' : article.applyNoIndexTag && !article.applyNoFollowTag ? 'noindex' : 'nofollow'
|
|
2487
|
-
}),
|
|
2483
|
+
(passwordLock || article.applyNoIndexTag) && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2488
2484
|
React__default.createElement('meta', {
|
|
2489
2485
|
property: 'og:url',
|
|
2490
2486
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2527,16 +2523,7 @@ var View = function View(props) {
|
|
|
2527
2523
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2528
2524
|
)
|
|
2529
2525
|
),
|
|
2530
|
-
!needInfiniteScroll ? React__default.createElement(Article, _extends({
|
|
2531
|
-
infiniteScroll: false,
|
|
2532
|
-
showRelatedArticles: showRelatedArticles,
|
|
2533
|
-
showDisqus: showDisqus,
|
|
2534
|
-
emailList: emailList,
|
|
2535
|
-
articleRecs: articleRecs
|
|
2536
|
-
}, props, {
|
|
2537
|
-
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null,
|
|
2538
|
-
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null
|
|
2539
|
-
})) : React__default.createElement(ArticleQueue, _extends({
|
|
2526
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props, { showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null, showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null })) : React__default.createElement(ArticleQueue, _extends({
|
|
2540
2527
|
infiniteScroll: true,
|
|
2541
2528
|
showRelatedArticles: showRelatedArticles,
|
|
2542
2529
|
canonicalTag: canonicalTag,
|
|
@@ -2650,9 +2637,6 @@ View.returnGetInitialProps = function () {
|
|
|
2650
2637
|
if (x.applyNoIndexTag) {
|
|
2651
2638
|
article.applyNoIndexTag = true;
|
|
2652
2639
|
}
|
|
2653
|
-
if (x.applyNoFollowTag) {
|
|
2654
|
-
article.applyNoFollowTag = true;
|
|
2655
|
-
}
|
|
2656
2640
|
});
|
|
2657
2641
|
}
|
|
2658
2642
|
// check for disableAds flag on content category
|