@reuters-graphics/graphics-components 0.0.19 → 0.0.20

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.
@@ -142,64 +142,66 @@ $: articleLdJson = {
142
142
  </script>
143
143
 
144
144
  <svelte:head>
145
- <title>{seoTitle}</title>
146
- <meta name="description" content="{seoDescription}" />
147
- <link rel="canonical" href="{canonicalUrl}" />
148
- <link
149
- rel="shortcut icon"
150
- type="image/x-icon"
151
- href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon.ico"
152
- />
153
- <link
154
- rel="icon"
155
- type="image/png"
156
- href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon-16x16.png"
157
- sizes="16x16"
158
- />
159
- <link
160
- rel="icon"
161
- type="image/png"
162
- href="https://s1.reutersmedia.net/resources_v2/images/favicon/favicon-32x32.png"
163
- sizes="32x32"
164
- />
165
- <link
166
- rel="icon"
167
- type="image/png"
168
- href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon-96x96.png"
169
- sizes="96x96"
170
- />
145
+ {#key canonicalUrl}
146
+ <title>{seoTitle}</title>
147
+ <meta name="description" content="{seoDescription}" />
148
+ <link rel="canonical" href="{canonicalUrl}" />
149
+ <link
150
+ rel="shortcut icon"
151
+ type="image/x-icon"
152
+ href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon.ico"
153
+ />
154
+ <link
155
+ rel="icon"
156
+ type="image/png"
157
+ href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon-16x16.png"
158
+ sizes="16x16"
159
+ />
160
+ <link
161
+ rel="icon"
162
+ type="image/png"
163
+ href="https://s1.reutersmedia.net/resources_v2/images/favicon/favicon-32x32.png"
164
+ sizes="32x32"
165
+ />
166
+ <link
167
+ rel="icon"
168
+ type="image/png"
169
+ href="https://s3.reutersmedia.net/resources_v2/images/favicon/favicon-96x96.png"
170
+ sizes="96x96"
171
+ />
171
172
 
172
- <meta property="og:url" content="{canonicalUrl}" />
173
- <meta property="og:type" content="article" />
174
- <meta property="og:title" content="{shareTitle}" itemprop="name" />
175
- <meta
176
- property="og:description"
177
- content="{shareDescription}"
178
- itemprop="description"
179
- />
180
- <meta property="og:image" content="{shareImgPath}" itemprop="image" />
181
- <meta property="og:site_name" content="Reuters" />
173
+ <meta property="og:url" content="{canonicalUrl}" />
174
+ <meta property="og:type" content="article" />
175
+ <meta property="og:title" content="{shareTitle}" itemprop="name" />
176
+ <meta
177
+ property="og:description"
178
+ content="{shareDescription}"
179
+ itemprop="description"
180
+ />
181
+ <meta property="og:image" content="{shareImgPath}" itemprop="image" />
182
+ <meta property="og:site_name" content="Reuters" />
182
183
 
183
- <meta name="twitter:card" content="summary_large_image" />
184
- <meta name="twitter:site" content="@ReutersGraphics" />
185
- <meta name="twitter:creator" content="@ReutersGraphics" />
186
- <meta name="twitter:domain" content="{origin}" />
187
- <meta name="twitter:title" content="{shareTitle}" />
188
- <meta name="twitter:description" content="{shareDescription}" />
189
- <meta name="twitter:image" content="{shareImgPath}" />
190
- {#if shareImgAlt}
191
- <meta name="twitter:image:alt" content="{shareImgAlt}" />
192
- {/if}
184
+ <meta name="twitter:card" content="summary_large_image" />
185
+ <meta name="twitter:site" content="@ReutersGraphics" />
186
+ <meta name="twitter:creator" content="@ReutersGraphics" />
187
+ <meta name="twitter:domain" content="{origin}" />
188
+ <meta name="twitter:title" content="{shareTitle}" />
189
+ <meta name="twitter:description" content="{shareDescription}" />
190
+ <meta name="twitter:image" content="{shareImgPath}" />
191
+ {#if shareImgAlt}
192
+ <meta name="twitter:image:alt" content="{shareImgAlt}" />
193
+ {/if}
193
194
 
194
- <meta property="fb:app_id" content="319194411438328" />
195
- <meta property="fb:admins" content="616167736" />
196
- <meta property="fb:admins" content="625796953" />
197
- <meta property="fb:admins" content="571759798" />
195
+ <meta property="fb:app_id" content="319194411438328" />
196
+ <meta property="fb:admins" content="616167736" />
197
+ <meta property="fb:admins" content="625796953" />
198
+ <meta property="fb:admins" content="571759798" />
198
199
 
199
- {@html `<${'script'} type="application/ld+json">${JSON.stringify(
200
- orgLdJson
201
- )}</script>`}
202
- {@html `<${'script'} type="application/ld+json">${JSON.stringify(
203
- articleLdJson
204
- )}</script>`}
200
+ {@html `<${'script'} type="application/ld+json">${JSON.stringify(
201
+ orgLdJson
202
+ )}</script>`}
203
+ {@html `<${'script'} type="application/ld+json">${JSON.stringify(
204
+ articleLdJson
205
+ )}</script>`}
206
+ {/key}
205
207
  </svelte:head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",