sfc-utils 1.3.71 → 1.3.72
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.
|
@@ -3,7 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { Helmet } from 'react-helmet'
|
|
4
4
|
import { appCheck, getBrands2 } from "../../index"
|
|
5
5
|
|
|
6
|
-
const LayoutHelmet = ({ meta, url_add }) => {
|
|
6
|
+
const LayoutHelmet = ({ meta, url_add, noindex = false }) => {
|
|
7
7
|
let {
|
|
8
8
|
EMBEDDED,
|
|
9
9
|
MAIN_DOMAIN,
|
|
@@ -68,7 +68,7 @@ const LayoutHelmet = ({ meta, url_add }) => {
|
|
|
68
68
|
<link rel="canonical" href={`${CANONICAL_URL}/${url_add}`} />
|
|
69
69
|
<link rel="stylesheet" href={`https://files.sfchronicle.com/brand-styles/${styleSheetID}.css`} />
|
|
70
70
|
|
|
71
|
-
{(isApp || EMBEDDED) ? (
|
|
71
|
+
{(isApp || EMBEDDED || noindex) ? (
|
|
72
72
|
<meta name="robots" content="noindex, nofollow" />
|
|
73
73
|
) : (
|
|
74
74
|
<meta name="robots" content="max-image-preview:large" />
|
package/components/topper2.mjs
CHANGED
|
@@ -140,7 +140,7 @@ const Topper2 = ({ settings, wcmData }) => {
|
|
|
140
140
|
const getWcmIdList = (listStr) => {
|
|
141
141
|
if (!listStr) return [];
|
|
142
142
|
|
|
143
|
-
return listStr.split(";").map((d) => parseInt(d));
|
|
143
|
+
return listStr.toString().split(";").map((d) => parseInt(d));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/** Checks if WCM list represents an image slideshow */
|
package/package.json
CHANGED
|
@@ -42,19 +42,6 @@ h1 {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
//move into share module?
|
|
46
|
-
.articleHeader--shareTools {
|
|
47
|
-
float: right;
|
|
48
|
-
a, a:visited {
|
|
49
|
-
color: @black;
|
|
50
|
-
}
|
|
51
|
-
@media (max-width: @md) {
|
|
52
|
-
display: block;
|
|
53
|
-
float: none;
|
|
54
|
-
margin: @s4 0;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
45
|
.caption {
|
|
59
46
|
margin: @s4 auto @s24;
|
|
60
47
|
}
|