@fifthbell/brokaw 0.1.52 → 0.1.54

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.
@@ -0,0 +1,378 @@
1
+ @font-face {
2
+ font-family: 'EB Garamond';
3
+ font-style: italic;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7e8QI96.ttf) format('truetype');
7
+ }
8
+ @font-face {
9
+ font-family: 'EB Garamond';
10
+ font-style: italic;
11
+ font-weight: 500;
12
+ font-display: swap;
13
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7eOQI96.ttf) format('truetype');
14
+ }
15
+ @font-face {
16
+ font-family: 'EB Garamond';
17
+ font-style: italic;
18
+ font-weight: 600;
19
+ font-display: swap;
20
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7diR496.ttf) format('truetype');
21
+ }
22
+ @font-face {
23
+ font-family: 'EB Garamond';
24
+ font-style: italic;
25
+ font-weight: 700;
26
+ font-display: swap;
27
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7dbR496.ttf) format('truetype');
28
+ }
29
+ @font-face {
30
+ font-family: 'EB Garamond';
31
+ font-style: italic;
32
+ font-weight: 800;
33
+ font-display: swap;
34
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7c8R496.ttf) format('truetype');
35
+ }
36
+ @font-face {
37
+ font-family: 'EB Garamond';
38
+ font-style: normal;
39
+ font-weight: 400;
40
+ font-display: swap;
41
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUAw.ttf) format('truetype');
42
+ }
43
+ @font-face {
44
+ font-family: 'EB Garamond';
45
+ font-style: normal;
46
+ font-weight: 500;
47
+ font-display: swap;
48
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-2fRUAw.ttf) format('truetype');
49
+ }
50
+ @font-face {
51
+ font-family: 'EB Garamond';
52
+ font-style: normal;
53
+ font-weight: 600;
54
+ font-display: swap;
55
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-NfNUAw.ttf) format('truetype');
56
+ }
57
+ @font-face {
58
+ font-family: 'EB Garamond';
59
+ font-style: normal;
60
+ font-weight: 700;
61
+ font-display: swap;
62
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-DPNUAw.ttf) format('truetype');
63
+ }
64
+ @font-face {
65
+ font-family: 'EB Garamond';
66
+ font-style: normal;
67
+ font-weight: 800;
68
+ font-display: swap;
69
+ src: url(https://cdn.fifthbell.com/content/fonts/SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-a_NUAw.ttf) format('truetype');
70
+ }
71
+ @font-face {
72
+ font-family: 'Encode Sans';
73
+ font-style: normal;
74
+ font-weight: 100;
75
+ font-stretch: normal;
76
+ font-display: swap;
77
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGGHiZtU.ttf) format('truetype');
78
+ }
79
+ @font-face {
80
+ font-family: 'Encode Sans';
81
+ font-style: normal;
82
+ font-weight: 200;
83
+ font-stretch: normal;
84
+ font-display: swap;
85
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGOHjZtU.ttf) format('truetype');
86
+ }
87
+ @font-face {
88
+ font-family: 'Encode Sans';
89
+ font-style: normal;
90
+ font-weight: 300;
91
+ font-stretch: normal;
92
+ font-display: swap;
93
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGD_jZtU.ttf) format('truetype');
94
+ }
95
+ @font-face {
96
+ font-family: 'Encode Sans';
97
+ font-style: normal;
98
+ font-weight: 400;
99
+ font-stretch: normal;
100
+ font-display: swap;
101
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGGHjZtU.ttf) format('truetype');
102
+ }
103
+ @font-face {
104
+ font-family: 'Encode Sans';
105
+ font-style: normal;
106
+ font-weight: 500;
107
+ font-stretch: normal;
108
+ font-display: swap;
109
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGFPjZtU.ttf) format('truetype');
110
+ }
111
+ @font-face {
112
+ font-family: 'Encode Sans';
113
+ font-style: normal;
114
+ font-weight: 600;
115
+ font-stretch: normal;
116
+ font-display: swap;
117
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGL_kZtU.ttf) format('truetype');
118
+ }
119
+ @font-face {
120
+ font-family: 'Encode Sans';
121
+ font-style: normal;
122
+ font-weight: 700;
123
+ font-stretch: normal;
124
+ font-display: swap;
125
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGIbkZtU.ttf) format('truetype');
126
+ }
127
+ @font-face {
128
+ font-family: 'Encode Sans';
129
+ font-style: normal;
130
+ font-weight: 800;
131
+ font-stretch: normal;
132
+ font-display: swap;
133
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGOHkZtU.ttf) format('truetype');
134
+ }
135
+ @font-face {
136
+ font-family: 'Encode Sans';
137
+ font-style: normal;
138
+ font-weight: 900;
139
+ font-stretch: normal;
140
+ font-display: swap;
141
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGMjkZtU.ttf) format('truetype');
142
+ }
143
+ @font-face {
144
+ font-family: 'Libre Franklin';
145
+ font-style: italic;
146
+ font-weight: 100;
147
+ font-display: swap;
148
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZ8RdDM.ttf) format('truetype');
149
+ }
150
+ @font-face {
151
+ font-family: 'Libre Franklin';
152
+ font-style: italic;
153
+ font-weight: 200;
154
+ font-display: swap;
155
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05ob8RNDM.ttf) format('truetype');
156
+ }
157
+ @font-face {
158
+ font-family: 'Libre Franklin';
159
+ font-style: italic;
160
+ font-weight: 300;
161
+ font-display: swap;
162
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oYiRNDM.ttf) format('truetype');
163
+ }
164
+ @font-face {
165
+ font-family: 'Libre Franklin';
166
+ font-style: italic;
167
+ font-weight: 400;
168
+ font-display: swap;
169
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZ8RNDM.ttf) format('truetype');
170
+ }
171
+ @font-face {
172
+ font-family: 'Libre Franklin';
173
+ font-style: italic;
174
+ font-weight: 500;
175
+ font-display: swap;
176
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZORNDM.ttf) format('truetype');
177
+ }
178
+ @font-face {
179
+ font-family: 'Libre Franklin';
180
+ font-style: italic;
181
+ font-weight: 600;
182
+ font-display: swap;
183
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oaiQ9DM.ttf) format('truetype');
184
+ }
185
+ @font-face {
186
+ font-family: 'Libre Franklin';
187
+ font-style: italic;
188
+ font-weight: 700;
189
+ font-display: swap;
190
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oabQ9DM.ttf) format('truetype');
191
+ }
192
+ @font-face {
193
+ font-family: 'Libre Franklin';
194
+ font-style: italic;
195
+ font-weight: 800;
196
+ font-display: swap;
197
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05ob8Q9DM.ttf) format('truetype');
198
+ }
199
+ @font-face {
200
+ font-family: 'Libre Franklin';
201
+ font-style: italic;
202
+ font-weight: 900;
203
+ font-display: swap;
204
+ src: url(https://cdn.fifthbell.com/content/fonts/jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05obVQ9DM.ttf) format('truetype');
205
+ }
206
+ @font-face {
207
+ font-family: 'Libre Franklin';
208
+ font-style: normal;
209
+ font-weight: 100;
210
+ font-display: swap;
211
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhLsSUBw.ttf) format('truetype');
212
+ }
213
+ @font-face {
214
+ font-family: 'Libre Franklin';
215
+ font-style: normal;
216
+ font-weight: 200;
217
+ font-display: swap;
218
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhrsWUBw.ttf) format('truetype');
219
+ }
220
+ @font-face {
221
+ font-family: 'Libre Franklin';
222
+ font-style: normal;
223
+ font-weight: 300;
224
+ font-display: swap;
225
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhcMWUBw.ttf) format('truetype');
226
+ }
227
+ @font-face {
228
+ font-family: 'Libre Franklin';
229
+ font-style: normal;
230
+ font-weight: 400;
231
+ font-display: swap;
232
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhLsWUBw.ttf) format('truetype');
233
+ }
234
+ @font-face {
235
+ font-family: 'Libre Franklin';
236
+ font-style: normal;
237
+ font-weight: 500;
238
+ font-display: swap;
239
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhHMWUBw.ttf) format('truetype');
240
+ }
241
+ @font-face {
242
+ font-family: 'Libre Franklin';
243
+ font-style: normal;
244
+ font-weight: 600;
245
+ font-display: swap;
246
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduh8MKUBw.ttf) format('truetype');
247
+ }
248
+ @font-face {
249
+ font-family: 'Libre Franklin';
250
+ font-style: normal;
251
+ font-weight: 700;
252
+ font-display: swap;
253
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhycKUBw.ttf) format('truetype');
254
+ }
255
+ @font-face {
256
+ font-family: 'Libre Franklin';
257
+ font-style: normal;
258
+ font-weight: 800;
259
+ font-display: swap;
260
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhrsKUBw.ttf) format('truetype');
261
+ }
262
+ @font-face {
263
+ font-family: 'Libre Franklin';
264
+ font-style: normal;
265
+ font-weight: 900;
266
+ font-display: swap;
267
+ src: url(https://cdn.fifthbell.com/content/fonts/jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhh8KUBw.ttf) format('truetype');
268
+ }
269
+ @font-face {
270
+ font-family: 'Oswald';
271
+ font-style: normal;
272
+ font-weight: 200;
273
+ font-display: swap;
274
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs13FvgUE.ttf) format('truetype');
275
+ }
276
+ @font-face {
277
+ font-family: 'Oswald';
278
+ font-style: normal;
279
+ font-weight: 300;
280
+ font-display: swap;
281
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs169vgUE.ttf) format('truetype');
282
+ }
283
+ @font-face {
284
+ font-family: 'Oswald';
285
+ font-style: normal;
286
+ font-weight: 400;
287
+ font-display: swap;
288
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvgUE.ttf) format('truetype');
289
+ }
290
+ @font-face {
291
+ font-family: 'Oswald';
292
+ font-style: normal;
293
+ font-weight: 500;
294
+ font-display: swap;
295
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs18NvgUE.ttf) format('truetype');
296
+ }
297
+ @font-face {
298
+ font-family: 'Oswald';
299
+ font-style: normal;
300
+ font-weight: 600;
301
+ font-display: swap;
302
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1y9ogUE.ttf) format('truetype');
303
+ }
304
+ @font-face {
305
+ font-family: 'Oswald';
306
+ font-style: normal;
307
+ font-weight: 700;
308
+ font-display: swap;
309
+ src: url(https://cdn.fifthbell.com/content/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1xZogUE.ttf) format('truetype');
310
+ }
311
+
312
+ @font-face {
313
+ font-family: 'Encode Sans';
314
+ font-style: normal;
315
+ font-weight: 400;
316
+ font-stretch: normal;
317
+ font-display: swap;
318
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGGHjZtU.ttf) format('truetype');
319
+ }
320
+ @font-face {
321
+ font-family: 'Encode Sans';
322
+ font-style: normal;
323
+ font-weight: 500;
324
+ font-stretch: normal;
325
+ font-display: swap;
326
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGFPjZtU.ttf) format('truetype');
327
+ }
328
+ @font-face {
329
+ font-family: 'Encode Sans';
330
+ font-style: normal;
331
+ font-weight: 600;
332
+ font-stretch: normal;
333
+ font-display: swap;
334
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGL_kZtU.ttf) format('truetype');
335
+ }
336
+ @font-face {
337
+ font-family: 'Encode Sans';
338
+ font-style: normal;
339
+ font-weight: 700;
340
+ font-stretch: normal;
341
+ font-display: swap;
342
+ src: url(https://cdn.fifthbell.com/content/fonts/LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGIbkZtU.ttf) format('truetype');
343
+ }
344
+ @font-face {
345
+ font-family: 'Encode Sans Condensed';
346
+ font-style: normal;
347
+ font-weight: 400;
348
+ font-display: swap;
349
+ src: url(https://cdn.fifthbell.com/content/fonts/j8_16_LD37rqfuwxyIuaZhE6cRXOLtm2gfTGgQ.ttf) format('truetype');
350
+ }
351
+ @font-face {
352
+ font-family: 'Encode Sans Condensed';
353
+ font-style: normal;
354
+ font-weight: 600;
355
+ font-display: swap;
356
+ src: url(https://cdn.fifthbell.com/content/fonts/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-WYupBw.ttf) format('truetype');
357
+ }
358
+ @font-face {
359
+ font-family: 'Encode Sans Condensed';
360
+ font-style: normal;
361
+ font-weight: 700;
362
+ font-display: swap;
363
+ src: url(https://cdn.fifthbell.com/content/fonts/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-PYqpBw.ttf) format('truetype');
364
+ }
365
+ @font-face {
366
+ font-family: 'Encode Sans Condensed';
367
+ font-style: normal;
368
+ font-weight: 800;
369
+ font-display: swap;
370
+ src: url(https://cdn.fifthbell.com/content/fonts/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-IYmpBw.ttf) format('truetype');
371
+ }
372
+ @font-face {
373
+ font-family: 'Encode Sans Condensed';
374
+ font-style: normal;
375
+ font-weight: 900;
376
+ font-display: swap;
377
+ src: url(https://cdn.fifthbell.com/content/fonts/j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-BYipBw.ttf) format('truetype');
378
+ }
@@ -34,9 +34,7 @@ export function buildInstagramImageHtml(params) {
34
34
  <head>
35
35
  <meta charset="UTF-8" />
36
36
  <meta name="viewport" content="width=1080, initial-scale=1.0" />
37
- <link rel="preconnect" href="https://fonts.googleapis.com">
38
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
39
- <link href="https://fonts.googleapis.com/css2?family=Encode+Sans+Condensed:wght@100;200;300;400;500;600;700;800;900&family=Encode+Sans:wght@100..900" rel="stylesheet">
37
+ <link href="https://cdn.fifthbell.com/content/fonts/fonts.css" rel="stylesheet">
40
38
  <style>
41
39
  * { margin: 0; padding: 0; box-sizing: border-box; }
42
40
  body {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fifthbell/brokaw",
3
3
  "description": "Server-side Handlebars renderer and templates for fifthbell pages.",
4
- "version": "0.1.52",
4
+ "version": "0.1.54",
5
5
  "license": "MIT",
6
6
  "author": "fifthbell",
7
7
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "clean": "node -e \"require('node:fs').rmSync('dist',{ recursive: true, force: true })\"",
46
46
  "build:css": "tailwindcss -i src/styles/global.css -o src/styles/compiled.css --minify",
47
47
  "build:live-program": "vite build --config vite.config.live-program.ts",
48
- "build": "npm run clean && npm run build:css && npm run build:live-program && tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/styles/fonts','dist/fonts',{recursive:true,filter:s=>!s.endsWith('.css')})\"",
48
+ "build": "npm run clean && npm run build:css && npm run build:live-program && tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/styles/fonts','dist/fonts',{recursive:true})\"",
49
49
  "storybook": "npm run build:css && storybook dev -p 6006",
50
50
  "build-storybook": "npm run build:css && storybook build",
51
51
  "typecheck": "tsc --noEmit -p tsconfig.json",
@@ -3,21 +3,39 @@
3
3
  <head>
4
4
  <meta charset='UTF-8' />
5
5
  <meta name='viewport' content='width=device-width, initial-scale=1' />
6
- <link href='https://cdn.fifthbell.com/content/fonts/fonts.css' rel='stylesheet' />
6
+ <link rel='preload' as='style' href='https://cdn.fifthbell.com/content/fonts/fonts.css' onload="this.rel='stylesheet';this.media='all'" />
7
+ <noscript><link href='https://cdn.fifthbell.com/content/fonts/fonts.css' rel='stylesheet' /></noscript>
7
8
  <meta name='description' content='{{#if seo.metaDescription}}{{seo.metaDescription}}{{else}}Page not found{{/if}}' />
8
9
  <link rel='canonical' href='{{canonicalUrl}}' />
9
10
  <title>{{#if seo.metaTitle}}{{seo.metaTitle}}{{else}}404 - Page Not Found | fifthbell{{/if}}</title>
10
11
  <style>{{{styles}}}</style>
11
- <!-- Google tag (gtag.js) -->
12
- <script async src='https://www.googletagmanager.com/gtag/js?id=G-9SGVGCR4JL'></script>
12
+ {{#if rumConfig}}
13
+ <script>
14
+ (function(n,i,v,r,s,c,u,x,z){
15
+ x=window;z=x[s]=x[s]||function(){z.q.push(arguments)};z.q=[];u=i.createElement(v);
16
+ u.async=1;u.src=r;u.setAttribute('crossorigin','');i.head.appendChild(u);
17
+ })(window,document,'script','https://rum.aws.amazon.com/loader.js','RUM');
18
+ RUM('create', {{{jsonString rumConfig.appMonitorName}}}, {
19
+ identityPoolId: {{{jsonString rumConfig.identityPoolId}}},
20
+ guestRoleArn: {{{jsonString rumConfig.guestRoleArn}}},
21
+ sessionSampleRate: 1,
22
+ endpoint: {{{jsonString 'https://dataplane.rum.us-east-1.amazonaws.com'}}},
23
+ telemetries: ['performance', 'errors', 'http'],
24
+ allowCookies: true
25
+ });
26
+ </script>
27
+ {{/if}}
28
+ {{#if gaConfig}}
29
+ <script async src='https://www.googletagmanager.com/gtag/js?id={{{gaConfig.measurementId}}}'></script>
13
30
  <script>
14
31
  window.dataLayer = window.dataLayer || [];
15
32
  function gtag(){dataLayer.push(arguments);}
16
33
  gtag('js', new Date());
17
- gtag('config', 'G-9SGVGCR4JL', {
34
+ gtag('config', {{{jsonString gaConfig.measurementId}}}, {
18
35
  content_group: '404'
19
36
  });
20
37
  </script>
38
+ {{/if}}
21
39
  </head>
22
40
  <body class='bg-white dark:bg-slate-950 text-slate-900 dark:text-slate-100 transition-colors'>
23
41
  <div class='min-h-screen flex flex-col'>
@@ -44,13 +44,29 @@
44
44
  <meta name='twitter:description' content='{{#if seo.metaDescription}}{{seo.metaDescription}}{{else}}{{excerpt}}{{/if}}' />
45
45
  <title>{{resolveHeadTitle this}}</title>
46
46
  <style>{{{styles}}}</style>
47
- <!-- Google tag (gtag.js) -->
48
- <script async src='https://www.googletagmanager.com/gtag/js?id=G-9SGVGCR4JL'></script>
47
+ {{#if rumConfig}}
48
+ <script>
49
+ (function(n,i,v,r,s,c,u,x,z){
50
+ x=window;z=x[s]=x[s]||function(){z.q.push(arguments)};z.q=[];u=i.createElement(v);
51
+ u.async=1;u.src=r;u.setAttribute('crossorigin','');i.head.appendChild(u);
52
+ })(window,document,'script','https://rum.aws.amazon.com/loader.js','RUM');
53
+ RUM('create', {{{jsonString rumConfig.appMonitorName}}}, {
54
+ identityPoolId: {{{jsonString rumConfig.identityPoolId}}},
55
+ guestRoleArn: {{{jsonString rumConfig.guestRoleArn}}},
56
+ sessionSampleRate: 1,
57
+ endpoint: {{{jsonString 'https://dataplane.rum.us-east-1.amazonaws.com'}}},
58
+ telemetries: ['performance', 'errors', 'http'],
59
+ allowCookies: true
60
+ });
61
+ </script>
62
+ {{/if}}
63
+ {{#if gaConfig}}
64
+ <script async src='https://www.googletagmanager.com/gtag/js?id={{{gaConfig.measurementId}}}'></script>
49
65
  <script>
50
66
  window.dataLayer = window.dataLayer || [];
51
67
  function gtag(){dataLayer.push(arguments);}
52
68
  gtag('js', new Date());
53
- gtag('config', 'G-9SGVGCR4JL', {
69
+ gtag('config', {{{jsonString gaConfig.measurementId}}}, {
54
70
  content_group: {{{jsonString layout}}}
55
71
  });
56
72
  gtag('event', 'page_metadata', {
@@ -64,6 +80,7 @@
64
80
  published_at: {{{jsonString publishedAt}}}
65
81
  });
66
82
  </script>
83
+ {{/if}}
67
84
  </head>
68
85
  <body class='bg-white dark:bg-slate-950 text-slate-900 dark:text-slate-100 transition-colors'>
69
86
  <div class='min-h-screen flex flex-col'>