sfc-utils 1.4.39 → 1.4.41
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/brands.js +17 -0
- package/brands2.js +17 -1
- package/components/layout/layouthelmet.mjs +9 -1
- package/package.json +1 -1
- package/settings.js +3 -1
package/brands.js
CHANGED
|
@@ -178,6 +178,23 @@ let getBrands = function(market){
|
|
|
178
178
|
"siteId": 68
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
+
Seattle: {
|
|
182
|
+
styles: {
|
|
183
|
+
"@brand": "#3F8395",
|
|
184
|
+
"@brand-secondary": "#189196"
|
|
185
|
+
},
|
|
186
|
+
attributes: {
|
|
187
|
+
"marketPrefix": "seattle",
|
|
188
|
+
"siteName": "Seattle PI",
|
|
189
|
+
"twitter": "seattlepi",
|
|
190
|
+
"invert": true,
|
|
191
|
+
"gaAccount": "UA-1616916-99",
|
|
192
|
+
"subscribeLink": "https://www.seattlepi.com/",
|
|
193
|
+
"sailCustomer": "da30899589786517b0c0cead37a48b06",
|
|
194
|
+
"sailSiteName": "seattle-post-intelligencer",
|
|
195
|
+
"siteId": 20
|
|
196
|
+
}
|
|
197
|
+
},
|
|
181
198
|
/* Misc */
|
|
182
199
|
TK: {
|
|
183
200
|
styles: {
|
package/brands2.js
CHANGED
|
@@ -183,7 +183,23 @@ let getBrands2 = function(market){
|
|
|
183
183
|
"siteId": 68
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
|
-
|
|
186
|
+
Seattle: {
|
|
187
|
+
styles: {
|
|
188
|
+
"@brand": "#3F8395",
|
|
189
|
+
"@brand-secondary": "#189196"
|
|
190
|
+
},
|
|
191
|
+
attributes: {
|
|
192
|
+
"marketPrefix": "seattle",
|
|
193
|
+
"siteName": "Seattle PI",
|
|
194
|
+
"twitter": "seattlepi",
|
|
195
|
+
"invert": true,
|
|
196
|
+
"gaAccount": "UA-1616916-99",
|
|
197
|
+
"subscribeLink": "https://www.seattlepi.com/",
|
|
198
|
+
"sailCustomer": "da30899589786517b0c0cead37a48b06",
|
|
199
|
+
"sailSiteName": "seattle-post-intelligencer",
|
|
200
|
+
"siteId": 20
|
|
201
|
+
}
|
|
202
|
+
},
|
|
187
203
|
/* Misc */
|
|
188
204
|
TK: {
|
|
189
205
|
styles: {
|
|
@@ -19,7 +19,8 @@ const LayoutHelmet = ({ meta, url_add, noindex=false, schemaOverride={} }) => {
|
|
|
19
19
|
SUBFOLDER,
|
|
20
20
|
TITLE,
|
|
21
21
|
MARKET_KEY,
|
|
22
|
-
CANONICAL_URL
|
|
22
|
+
CANONICAL_URL,
|
|
23
|
+
SECTION
|
|
23
24
|
},
|
|
24
25
|
} = meta
|
|
25
26
|
|
|
@@ -62,6 +63,12 @@ const LayoutHelmet = ({ meta, url_add, noindex=false, schemaOverride={} }) => {
|
|
|
62
63
|
favHref = "https://files.sfchronicle.com/devhub-logos/DHlogos-sm.png"
|
|
63
64
|
}
|
|
64
65
|
|
|
66
|
+
// Set section with fallback
|
|
67
|
+
let articleSection = "Local"
|
|
68
|
+
if (SECTION) {
|
|
69
|
+
articleSection = SECTION
|
|
70
|
+
}
|
|
71
|
+
|
|
65
72
|
// Set the default schema that will be used as a fallback
|
|
66
73
|
let schemaContent = `{
|
|
67
74
|
"@context": "http://schema.org",
|
|
@@ -88,6 +95,7 @@ const LayoutHelmet = ({ meta, url_add, noindex=false, schemaOverride={} }) => {
|
|
|
88
95
|
"height": "180"
|
|
89
96
|
}
|
|
90
97
|
},
|
|
98
|
+
"articleSection": "${articleSection}",
|
|
91
99
|
"description": "${DESCRIPTION}"
|
|
92
100
|
}`
|
|
93
101
|
|
package/package.json
CHANGED
package/settings.js
CHANGED
|
@@ -94,7 +94,9 @@ let getSettings = function(){
|
|
|
94
94
|
"NEWSLETTER_ID": storySettings.NewsletterID || storySettings.Custom_Sailthru_ID || projectSettings.NEWSLETTER_ID,
|
|
95
95
|
"NEWSLETTER_PROMO": storySettings.NewsletterPromo || storySettings.Custom_Signup_Text || projectSettings.NEWSLETTER_PROMO,
|
|
96
96
|
"NEWSLETTER_LEGAL": storySettings.NewsletterLegal || storySettings.TOS_Text || projectSettings.NEWSLETTER_LEGAL,
|
|
97
|
-
|
|
97
|
+
// Newer things
|
|
98
|
+
"RELATED_LINKS_HED": storySettings.Related_Links_Hed,
|
|
99
|
+
"SECTION": storySettings.Section || storySettings.Category || storySettings.Analytics_Section
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
} catch (err){
|