@mjhls/mjh-framework 1.0.1028-noindex-test → 1.0.1028
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 +1 -5
- package/dist/esm/View.js +1 -5
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -2490,7 +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
|
-
|
|
2493
|
+
passwordLock && React__default["default"].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2494
2494
|
React__default["default"].createElement('meta', {
|
|
2495
2495
|
property: 'og:url',
|
|
2496
2496
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2636,7 +2636,6 @@ View.returnGetInitialProps = function () {
|
|
|
2636
2636
|
});
|
|
2637
2637
|
}
|
|
2638
2638
|
sponsoredFlag = false;
|
|
2639
|
-
|
|
2640
2639
|
// check for disableAds flag on each taxonomoy
|
|
2641
2640
|
|
|
2642
2641
|
if (article && article.content_placement) {
|
|
@@ -2644,9 +2643,6 @@ View.returnGetInitialProps = function () {
|
|
|
2644
2643
|
if (x.disableAds) {
|
|
2645
2644
|
sponsoredFlag = true;
|
|
2646
2645
|
}
|
|
2647
|
-
if (x.applyNoIndexTag) {
|
|
2648
|
-
article.applyNoIndexTag = true;
|
|
2649
|
-
}
|
|
2650
2646
|
});
|
|
2651
2647
|
}
|
|
2652
2648
|
// check for disableAds flag on content category
|
package/dist/esm/View.js
CHANGED
|
@@ -2480,7 +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
|
-
|
|
2483
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2484
2484
|
React__default.createElement('meta', {
|
|
2485
2485
|
property: 'og:url',
|
|
2486
2486
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2626,7 +2626,6 @@ View.returnGetInitialProps = function () {
|
|
|
2626
2626
|
});
|
|
2627
2627
|
}
|
|
2628
2628
|
sponsoredFlag = false;
|
|
2629
|
-
|
|
2630
2629
|
// check for disableAds flag on each taxonomoy
|
|
2631
2630
|
|
|
2632
2631
|
if (article && article.content_placement) {
|
|
@@ -2634,9 +2633,6 @@ View.returnGetInitialProps = function () {
|
|
|
2634
2633
|
if (x.disableAds) {
|
|
2635
2634
|
sponsoredFlag = true;
|
|
2636
2635
|
}
|
|
2637
|
-
if (x.applyNoIndexTag) {
|
|
2638
|
-
article.applyNoIndexTag = true;
|
|
2639
|
-
}
|
|
2640
2636
|
});
|
|
2641
2637
|
}
|
|
2642
2638
|
// check for disableAds flag on content category
|