@fifthbell/brokaw 0.1.67 → 0.1.69
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/README.md +1 -1
- package/dist/cronkite-manifest.d.ts +205 -69
- package/dist/cronkite-manifest.js +288 -111
- package/dist/cronkite-manifest.json +1024 -125
- package/dist/instagram-image-template.d.ts +0 -1
- package/dist/instagram-image-template.js +0 -4
- package/dist/layouts.d.ts +1 -1
- package/dist/live-program-page/index.html +2 -2
- package/dist/live-program-page/live-program-manifest.json +6 -6
- package/dist/live-program-page/live-program.v0.1.69.css +3 -0
- package/dist/manifest-validation.d.ts +2 -2
- package/dist/manifest-validation.js +12 -16
- package/dist/outlet-config.d.ts +0 -1
- package/dist/outlet-config.js +0 -1
- package/dist/renderer.browser.js +12 -0
- package/dist/renderer.core.js +42 -258
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +1 -1
- package/dist/renderer.node.js +0 -9
- package/dist/schemas/canonical-document.schema.json +30 -10
- package/dist/schemas/cronkite-manifest.schema.json +84 -450
- package/dist/schemas/social-image-input.schema.json +14 -0
- package/dist/search-copy.d.ts +65 -0
- package/dist/search-copy.js +65 -0
- package/dist/types/canonical-document-schema.generated.d.ts +48 -4
- package/dist/types/canonical-document-schema.generated.js +48 -4
- package/dist/types/canonical-document.generated.d.ts +14 -0
- package/dist/types/cronkite-manifest.generated.d.ts +101 -297
- package/package.json +2 -2
- package/src/partial-deps.json +221 -50
- package/src/styles/compiled.css +1 -1
- package/src/templates/partials/blocks/tiktok.hbs +1 -1
- package/src/templates/partials/blocks/x.hbs +4 -4
- package/src/templates/partials/components/article-main.hbs +1 -1
- package/src/templates/partials/components/body-block.hbs +31 -0
- package/src/templates/partials/components/breaking-news/live-updates-column.hbs +2 -2
- package/src/templates/partials/components/breaking-news.hbs +2 -2
- package/src/templates/partials/components/editorial-hero.hbs +2 -2
- package/src/templates/partials/components/home/landing.hbs +1 -1
- package/src/templates/partials/components/home/main.hbs +4 -1
- package/src/templates/partials/components/live-story/main.hbs +4 -12
- package/src/templates/partials/components/not-found/main.hbs +4 -4
- package/src/templates/partials/components/search/main.hbs +25 -15
- package/src/templates/partials/components/snack-meta-image-row.hbs +21 -0
- package/src/templates/partials/components/snack-meta-inline.hbs +43 -0
- package/src/templates/partials/components/snack-top-story.hbs +1 -0
- package/src/templates/partials/components/snack.hbs +3 -61
- package/src/templates/partials/components/spotlight-hero-slides.hbs +1 -0
- package/src/templates/partials/components/spotlight-hero.hbs +2 -2
- package/src/templates/partials/components/standalone-main.hbs +1 -1
- package/src/templates/partials/shell/doc-start-404.hbs +2 -4
- package/src/templates/partials/shell/doc-start-standard.hbs +9 -11
- package/src/templates/partials/shell/rum-loader.hbs +77 -0
- package/src/templates/templates/instagram-image.hbs +0 -2
- package/dist/live-program-page/live-program.v0.1.67.css +0 -3
- /package/dist/live-program-page/{live-program.v0.1.67.js → live-program.v0.1.69.js} +0 -0
|
@@ -1,124 +1,301 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { searchCopyByLanguage } from './search-copy.js';
|
|
2
|
+
import { version } from './version.js';
|
|
3
|
+
const pagePartials = [
|
|
4
|
+
'shell/doc-start-standard',
|
|
5
|
+
'headers/header-main',
|
|
6
|
+
'footers/footer-full',
|
|
7
|
+
'shell/doc-end',
|
|
8
|
+
];
|
|
9
|
+
const partialDependencies = {
|
|
10
|
+
'shell/doc-start-standard': ['shell/rum-loader'],
|
|
11
|
+
'shell/doc-start-404': ['shell/rum-loader'],
|
|
12
|
+
'shell/rum-loader': [],
|
|
13
|
+
'headers/header-main': [],
|
|
14
|
+
'headers/header-minimal': [],
|
|
15
|
+
'footers/footer-full': [],
|
|
16
|
+
'shell/doc-end': [],
|
|
17
|
+
'components/article-main': ['components/body-block', 'components/snack'],
|
|
18
|
+
'components/body-block': [
|
|
19
|
+
'blocks/audio', 'blocks/data-table', 'blocks/divider', 'blocks/heading',
|
|
20
|
+
'blocks/image', 'blocks/info-box', 'blocks/instagram', 'blocks/key-points',
|
|
21
|
+
'blocks/list', 'blocks/live-update', 'blocks/pull-quote', 'blocks/rich-text',
|
|
22
|
+
'blocks/tiktok', 'blocks/x', 'blocks/youtube',
|
|
23
|
+
],
|
|
24
|
+
'blocks/audio': [],
|
|
25
|
+
'blocks/data-table': [],
|
|
26
|
+
'blocks/divider': [],
|
|
27
|
+
'blocks/heading': [],
|
|
28
|
+
'blocks/image': [],
|
|
29
|
+
'blocks/info-box': [],
|
|
30
|
+
'blocks/instagram': [],
|
|
31
|
+
'blocks/key-points': [],
|
|
32
|
+
'blocks/list': [],
|
|
33
|
+
'blocks/live-update': [],
|
|
34
|
+
'blocks/pull-quote': [],
|
|
35
|
+
'blocks/rich-text': [],
|
|
36
|
+
'blocks/tiktok': [],
|
|
37
|
+
'blocks/x': [],
|
|
38
|
+
'blocks/youtube': [],
|
|
39
|
+
'components/snack': ['components/snack-meta-image-row', 'components/snack-meta-inline'],
|
|
40
|
+
'components/snack-top-story': ['components/snack'],
|
|
41
|
+
'components/snack-meta-image-row': [],
|
|
42
|
+
'components/snack-meta-inline': [],
|
|
43
|
+
'components/category/main': ['components/category/header', 'components/category/main-grid', 'components/category/more-grid'],
|
|
44
|
+
'components/category/header': [],
|
|
45
|
+
'components/category/main-grid': ['components/snack'],
|
|
46
|
+
'components/category/more-grid': [],
|
|
47
|
+
'components/search/main': [],
|
|
48
|
+
'components/not-found/main': [],
|
|
49
|
+
'components/home/main': [
|
|
50
|
+
'components/spotlight-hero', 'components/spotlight-hero-slides', 'components/trending',
|
|
51
|
+
'components/editorial-hero', 'components/breaking-news', 'components/home/landing',
|
|
52
|
+
'components/home/must-read', 'components/home/more-stories',
|
|
53
|
+
],
|
|
54
|
+
'components/spotlight-hero': ['components/headline'],
|
|
55
|
+
'components/spotlight-hero-slides': ['components/spotlight-hero'],
|
|
56
|
+
'components/trending': [],
|
|
57
|
+
'components/headline': [],
|
|
58
|
+
'components/editorial-hero': ['components/headline'],
|
|
59
|
+
'components/breaking-news': ['components/breaking-news/live-updates-column'],
|
|
60
|
+
'components/breaking-news/live-updates-column': [],
|
|
61
|
+
'components/home/landing': ['components/snack', 'components/snack-top-story'],
|
|
62
|
+
'components/home/must-read': ['components/snack'],
|
|
63
|
+
'components/home/more-stories': ['components/snack'],
|
|
64
|
+
'components/live-story/main': ['components/ui/status-badge', 'components/body-block', 'components/snack'],
|
|
65
|
+
'components/ui/status-badge': [],
|
|
66
|
+
'components/media/main': [],
|
|
67
|
+
'components/standalone-main': ['components/body-block'],
|
|
68
|
+
};
|
|
69
|
+
const partials = Object.fromEntries(Object.entries(partialDependencies).map(([name, dependencies]) => [
|
|
70
|
+
name,
|
|
6
71
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
key: "html/{language}/404/index.html",
|
|
10
|
-
cacheControl: "public, max-age=0, must-revalidate",
|
|
11
|
-
perLanguage: true,
|
|
12
|
-
copy: {
|
|
13
|
-
en: {
|
|
14
|
-
title: "Page Not Found",
|
|
15
|
-
description: "The page you are looking for does not exist.",
|
|
16
|
-
},
|
|
17
|
-
es: {
|
|
18
|
-
title: "Página no encontrada",
|
|
19
|
-
description: "La página que buscas no existe.",
|
|
20
|
-
},
|
|
21
|
-
it: {
|
|
22
|
-
title: "Pagina non trovata",
|
|
23
|
-
description: "La pagina che stai cercando non esiste.",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
72
|
+
entry: `src/templates/partials/${name}.hbs`,
|
|
73
|
+
partials: [...dependencies],
|
|
26
74
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
75
|
+
]));
|
|
76
|
+
const page = (layout, dependencies) => ({
|
|
77
|
+
template: {
|
|
78
|
+
entry: `src/templates/layouts/${layout}.hbs`,
|
|
79
|
+
partials: [...dependencies],
|
|
80
|
+
},
|
|
81
|
+
inputSchema: 'dist/schemas/canonical-document.schema.json',
|
|
82
|
+
contentType: 'text/html; charset=utf-8',
|
|
83
|
+
});
|
|
84
|
+
const localizedSystemCopy = {
|
|
85
|
+
en: {
|
|
86
|
+
notFound: ['Page Not Found', 'The page you are looking for does not exist.', 'Go to Homepage', 'Or explore our categories:'],
|
|
87
|
+
search: ['Search', 'Search stories from Fifthbell.'],
|
|
88
|
+
},
|
|
89
|
+
es: {
|
|
90
|
+
notFound: ['Página no encontrada', 'La página que buscas no existe.', 'Ir al inicio', 'O explora nuestras categorías:'],
|
|
91
|
+
search: ['Buscar', 'Busca noticias de Fifthbell.'],
|
|
92
|
+
},
|
|
93
|
+
it: {
|
|
94
|
+
notFound: ['Pagina non trovata', 'La pagina che stai cercando non esiste.', 'Vai alla home page', 'Oppure esplora le nostre categorie:'],
|
|
95
|
+
search: ['Cerca', 'Cerca notizie Fifthbell.'],
|
|
47
96
|
},
|
|
97
|
+
};
|
|
98
|
+
const systemDocument = (layout, language, slug, title, excerpt, extra = {}) => ({
|
|
99
|
+
id: `system-${layout}-${language}`,
|
|
100
|
+
slug,
|
|
101
|
+
canonicalUrl: `https://fifthbell.com${slug}`,
|
|
102
|
+
contentVersion: '2026-09-21T00:00:00.000Z',
|
|
103
|
+
publishedAt: '2026-09-21T00:00:00.000Z',
|
|
104
|
+
updatedAt: '2026-09-21T00:00:00.000Z',
|
|
105
|
+
status: 'published',
|
|
106
|
+
title,
|
|
107
|
+
excerpt,
|
|
108
|
+
language,
|
|
109
|
+
featured: false,
|
|
110
|
+
body: [],
|
|
111
|
+
layout,
|
|
112
|
+
authors: [{ name: 'Fifthbell Newsroom', slug: 'fifthbell-newsroom' }],
|
|
113
|
+
categories: [],
|
|
114
|
+
navigation: { categories: [] },
|
|
115
|
+
logoLink: language === 'en' ? '/' : `/${language}`,
|
|
116
|
+
seo: {
|
|
117
|
+
metaTitle: `${title} | fifthbell`,
|
|
118
|
+
metaDescription: excerpt,
|
|
119
|
+
},
|
|
120
|
+
...extra,
|
|
121
|
+
});
|
|
122
|
+
const systemVariants = (layout, segment, createExtra = () => ({})) => {
|
|
123
|
+
const variants = ['en', 'es', 'it'].map((language) => {
|
|
124
|
+
const localizedSegment = language === 'en' ? `/${segment}` : `/${language}/${segment}`;
|
|
125
|
+
const copy = localizedSystemCopy[language][layout === '404' ? 'notFound' : 'search'];
|
|
126
|
+
return {
|
|
127
|
+
key: language === 'en' ? `html/${segment}/index.html` : `html/${language}/${segment}/index.html`,
|
|
128
|
+
document: systemDocument(layout, language, localizedSegment, copy[0], copy[1], createExtra(language)),
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
return [variants[0], ...variants.slice(1)];
|
|
132
|
+
};
|
|
133
|
+
const immutable = 'public, max-age=31536000, immutable';
|
|
134
|
+
const fontNames = [
|
|
135
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGD_jZtU.ttf',
|
|
136
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGFPjZtU.ttf',
|
|
137
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGGHiZtU.ttf',
|
|
138
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGGHjZtU.ttf',
|
|
139
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGIbkZtU.ttf',
|
|
140
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGL_kZtU.ttf',
|
|
141
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGMjkZtU.ttf',
|
|
142
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGOHjZtU.ttf',
|
|
143
|
+
'LDIcapOFNxEwR-Bd1O9uYNmnUQomAgE25imKSbHhROjLsZBWTSrQGOHkZtU.ttf',
|
|
144
|
+
'SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-2fRUAw.ttf',
|
|
145
|
+
'SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUAw.ttf',
|
|
146
|
+
'SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-DPNUAw.ttf',
|
|
147
|
+
'SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-NfNUAw.ttf',
|
|
148
|
+
'SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-a_NUAw.ttf',
|
|
149
|
+
'SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7c8R496.ttf',
|
|
150
|
+
'SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7dbR496.ttf',
|
|
151
|
+
'SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7diR496.ttf',
|
|
152
|
+
'SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7e8QI96.ttf',
|
|
153
|
+
'SlGFmQSNjdsmc35JDF1K5GRwUjcdlttVFm-rI7eOQI96.ttf',
|
|
154
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs13FvgUE.ttf',
|
|
155
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs169vgUE.ttf',
|
|
156
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs18NvgUE.ttf',
|
|
157
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvgUE.ttf',
|
|
158
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs1xZogUE.ttf',
|
|
159
|
+
'TK3_WkUHHAIjg75cFRf3bXL8LICs1y9ogUE.ttf',
|
|
160
|
+
'j8_16_LD37rqfuwxyIuaZhE6cRXOLtm2gfTGgQ.ttf',
|
|
161
|
+
'j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-BYipBw.ttf',
|
|
162
|
+
'j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-IYmpBw.ttf',
|
|
163
|
+
'j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-PYqpBw.ttf',
|
|
164
|
+
'j8_46_LD37rqfuwxyIuaZhE6cRXOLtm2gfT-WYupBw.ttf',
|
|
165
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oYiRNDM.ttf',
|
|
166
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZ8RNDM.ttf',
|
|
167
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZ8RdDM.ttf',
|
|
168
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oZORNDM.ttf',
|
|
169
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oabQ9DM.ttf',
|
|
170
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05oaiQ9DM.ttf',
|
|
171
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05ob8Q9DM.ttf',
|
|
172
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05ob8RNDM.ttf',
|
|
173
|
+
'jizMREVItHgc8qDIbSTKq4XkRiUawTk7f45UM9y05obVQ9DM.ttf',
|
|
174
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduh8MKUBw.ttf',
|
|
175
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhHMWUBw.ttf',
|
|
176
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhLsSUBw.ttf',
|
|
177
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhLsWUBw.ttf',
|
|
178
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhcMWUBw.ttf',
|
|
179
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhh8KUBw.ttf',
|
|
180
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhrsKUBw.ttf',
|
|
181
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhrsWUBw.ttf',
|
|
182
|
+
'jizOREVItHgc8qDIbSTKq4XkRg8T88bjFuXOnduhycKUBw.ttf',
|
|
48
183
|
];
|
|
49
184
|
export const cronkiteManifest = {
|
|
50
|
-
|
|
51
|
-
contractVersion: 1,
|
|
52
|
-
package: "@fifthbell/brokaw",
|
|
185
|
+
package: '@fifthbell/brokaw',
|
|
53
186
|
version,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export: "render",
|
|
84
|
-
contentType: "text/html; charset=utf-8",
|
|
85
|
-
inputSchema: "dist/schemas/feed-renderable-input.schema.json",
|
|
86
|
-
},
|
|
87
|
-
"link-in-bio": {
|
|
88
|
-
engine: "handlebars",
|
|
89
|
-
export: "render",
|
|
90
|
-
contentType: "text/html; charset=utf-8",
|
|
91
|
-
inputSchema: "dist/schemas/feed-renderable-input.schema.json",
|
|
187
|
+
templateRendering: {
|
|
188
|
+
contract: 'cronkite.templates',
|
|
189
|
+
contractVersion: 1,
|
|
190
|
+
partials,
|
|
191
|
+
helperConfig: {
|
|
192
|
+
siteName: 'fifthbell',
|
|
193
|
+
defaultLanguage: 'en',
|
|
194
|
+
supportedLanguages: ['en', 'es', 'it'],
|
|
195
|
+
prefixDefaultLocale: false,
|
|
196
|
+
dateLocale: 'en-US',
|
|
197
|
+
timeZone: 'America/New_York',
|
|
198
|
+
homepageTitles: {
|
|
199
|
+
en: 'fifthbell - Breaking News & Current Events',
|
|
200
|
+
es: 'fifthbell - Noticias de última hora y actualidad',
|
|
201
|
+
it: 'fifthbell - Ultime notizie e attualità',
|
|
202
|
+
},
|
|
203
|
+
layoutTitleFallbacks: {
|
|
204
|
+
'article-page': 'Article',
|
|
205
|
+
homepage: 'fifthbell',
|
|
206
|
+
'category-page': 'Category',
|
|
207
|
+
'search-page': 'Search',
|
|
208
|
+
'404': 'Page Not Found',
|
|
209
|
+
'live-story': 'Live Story',
|
|
210
|
+
'link-in-bio': 'Top Stories',
|
|
211
|
+
'media-page': 'Media',
|
|
212
|
+
'standalone-page': 'fifthbell',
|
|
213
|
+
},
|
|
214
|
+
titleSeparator: ' | ',
|
|
215
|
+
defaultSocialImageUrl: null,
|
|
92
216
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
217
|
+
embedRegistry: {
|
|
218
|
+
'x-status': {
|
|
219
|
+
urlTemplate: 'https://twitter.com/{username}/status/{id}',
|
|
220
|
+
parameters: {
|
|
221
|
+
username: { type: 'string', pattern: '^[A-Za-z0-9_]{1,15}$' },
|
|
222
|
+
id: { type: 'string', pattern: '^[0-9]+$' },
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
'x-embed': {
|
|
226
|
+
urlTemplate: 'https://platform.twitter.com/embed/Tweet.html?id={id}&dnt=true',
|
|
227
|
+
parameters: { id: { type: 'string', pattern: '^[0-9]+$' } },
|
|
228
|
+
},
|
|
229
|
+
instagram: {
|
|
230
|
+
urlTemplate: 'https://www.instagram.com/p/{shortcode}/embed/',
|
|
231
|
+
parameters: { shortcode: { type: 'string', pattern: '^[A-Za-z0-9_-]+$' } },
|
|
232
|
+
},
|
|
233
|
+
tiktok: {
|
|
234
|
+
urlTemplate: 'https://www.tiktok.com/embed/v2/{id}',
|
|
235
|
+
parameters: { id: { type: 'string', pattern: '^[0-9]+$' } },
|
|
236
|
+
},
|
|
237
|
+
'sofascore-widget': {
|
|
238
|
+
urlTemplate: 'https://widgets.sofascore.com/embed/attackMomentum?id={id}&widgetTheme={widgetTheme}',
|
|
239
|
+
parameters: {
|
|
240
|
+
id: { type: 'integer', minimum: 1 },
|
|
241
|
+
widgetTheme: { type: 'string', enum: ['light', 'dark'], default: 'light' },
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
'sofascore-match': {
|
|
245
|
+
urlTemplate: 'https://www.sofascore.com/football/match#id:{id}',
|
|
246
|
+
parameters: { id: { type: 'integer', minimum: 1 } },
|
|
247
|
+
},
|
|
99
248
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
249
|
+
renderables: {
|
|
250
|
+
'article-page': page('article-page', [pagePartials[0], pagePartials[1], 'components/article-main', pagePartials[2], pagePartials[3]]),
|
|
251
|
+
homepage: page('homepage', [pagePartials[0], pagePartials[1], 'components/home/main', pagePartials[2], pagePartials[3]]),
|
|
252
|
+
'category-page': page('category-page', [pagePartials[0], pagePartials[1], 'components/category/main', pagePartials[2], pagePartials[3]]),
|
|
253
|
+
'search-page': page('search-page', [pagePartials[0], pagePartials[1], 'components/search/main', pagePartials[2], pagePartials[3]]),
|
|
254
|
+
'404': page('404', ['shell/doc-start-404', 'headers/header-minimal', 'components/not-found/main', pagePartials[2], pagePartials[3]]),
|
|
255
|
+
'live-story': page('live-story', [pagePartials[0], pagePartials[1], 'components/live-story/main', pagePartials[2], pagePartials[3]]),
|
|
256
|
+
'link-in-bio': page('link-in-bio', []),
|
|
257
|
+
'media-page': page('media-page', [pagePartials[0], pagePartials[1], 'components/media/main', pagePartials[2], pagePartials[3]]),
|
|
258
|
+
'standalone-page': page('standalone-page', [pagePartials[0], pagePartials[1], 'components/standalone-main', pagePartials[2], pagePartials[3]]),
|
|
259
|
+
'social-image': {
|
|
260
|
+
template: { entry: 'src/templates/templates/instagram-image.hbs', partials: [] },
|
|
261
|
+
inputSchema: 'dist/schemas/social-image-input.schema.json',
|
|
262
|
+
contentType: 'image/jpeg',
|
|
263
|
+
raster: { format: 'jpeg', width: 1080, height: 1350 },
|
|
264
|
+
},
|
|
105
265
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
266
|
+
staticAssets: {
|
|
267
|
+
...Object.fromEntries(fontNames.map((name) => [`content/fonts/${name}`, {
|
|
268
|
+
source: `dist/fonts/${name}`,
|
|
269
|
+
contentType: 'font/ttf',
|
|
270
|
+
cacheControl: immutable,
|
|
271
|
+
}])),
|
|
272
|
+
'content/fonts/fonts.css': {
|
|
273
|
+
source: 'dist/fonts/fonts.css',
|
|
274
|
+
contentType: 'text/css; charset=utf-8',
|
|
275
|
+
cacheControl: immutable,
|
|
276
|
+
},
|
|
277
|
+
'content/styles/brokaw.css': {
|
|
278
|
+
source: 'src/styles/compiled.css',
|
|
279
|
+
contentType: 'text/css; charset=utf-8',
|
|
280
|
+
cacheControl: immutable,
|
|
115
281
|
},
|
|
116
282
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
283
|
+
systemPages: [
|
|
284
|
+
{
|
|
285
|
+
renderable: '404',
|
|
286
|
+
contentType: 'text/html; charset=utf-8',
|
|
287
|
+
cacheControl: 'public, max-age=0, must-revalidate',
|
|
288
|
+
variants: systemVariants('404', '404', (language) => ({
|
|
289
|
+
homeLinkLabel: localizedSystemCopy[language].notFound[2],
|
|
290
|
+
categoriesLabel: localizedSystemCopy[language].notFound[3],
|
|
291
|
+
})),
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
renderable: 'search-page',
|
|
295
|
+
contentType: 'text/html; charset=utf-8',
|
|
296
|
+
cacheControl: 'public, max-age=0, must-revalidate',
|
|
297
|
+
variants: systemVariants('search-page', 'search', (language) => ({ searchCopy: searchCopyByLanguage[language] })),
|
|
298
|
+
},
|
|
299
|
+
],
|
|
123
300
|
},
|
|
124
301
|
};
|