deno.land / x / lume@v2.1.4 / tests / __snapshots__ / metas.test.ts.snap

metas.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
export const snapshot = {};
snapshot[`metas plugin 1`] = `{ formats: [ { engines: 0, ext: ".page.toml", loader: [AsyncFunction: toml], pageType: "page", }, { engines: 1, ext: ".page.ts", loader: [AsyncFunction: module], pageType: "page", }, { engines: 1, ext: ".page.js", loader: [AsyncFunction: module], pageType: "page", }, { engines: 0, ext: ".page.jsonc", loader: [AsyncFunction: json], pageType: "page", }, { engines: 0, ext: ".page.json", loader: [AsyncFunction: json], pageType: "page", }, { dataLoader: [AsyncFunction: json], engines: 0, ext: ".json", loader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], engines: 0, ext: ".jsonc", loader: [AsyncFunction: json], }, { engines: 1, ext: ".md", loader: [AsyncFunction: text], pageType: "page", }, { engines: 1, ext: ".markdown", loader: [AsyncFunction: text], pageType: "page", }, { dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", loader: [AsyncFunction: module], }, { dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", loader: [AsyncFunction: module], }, { engines: 1, ext: ".vento", loader: [AsyncFunction: text], pageType: "page", }, { engines: 1, ext: ".vto", loader: [AsyncFunction: text], pageType: "page", }, { dataLoader: [AsyncFunction: toml], engines: 0, ext: ".toml", loader: [AsyncFunction: toml], }, { dataLoader: [AsyncFunction: yaml], engines: 0, ext: ".yaml", loader: [AsyncFunction: yaml], pageType: "page", }, { dataLoader: [AsyncFunction: yaml], engines: 0, ext: ".yml", loader: [AsyncFunction: yaml], pageType: "page", }, ], src: [ "/", "/_data.js", "/page-1.vto", "/page-2.vto", "/page-3.md", ],}`;
snapshot[`metas plugin 2`] = `[]`;
snapshot[`metas plugin 3`] = `[ { content: '<!DOCTYPE html><html><head> <meta property="og:type" content="website"><meta property="og:site_name" content="My site"><meta property="og:locale" content="gl"><meta property="og:title" content="Custom title"><meta property="og:description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor…"><meta property="og:url" content="http://localhost/page-1/"><meta property="og:image" content="http://localhost/my-image.png"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@myUser"><meta name="description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor…"><meta name="keywords" content="one, two"><meta name="robots" content="index, follow"><meta name="theme-color" content="black"><meta name="generator" content="Lume testing"></head> <body> Hello world </body></html>', data: { basename: "page-1", children: "<html> <head> </head> <body> Hello world </body></html>", content: "<html> <head> </head> <body> Hello world </body></html>", date: [], mergedKeys: [ "tags", "metas", ], metas: [ "site", "title", "description", "image", "icon", "robots", "keywords", "twitter", "lang", "color", "generator", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", url: "/page-1/", }, src: { asset: false, ext: ".vto", path: "/page-1", remote: undefined, }, }, { content: '<!DOCTYPE html><html><head> <meta property="og:type" content="website"><meta property="og:site_name" content="My site"><meta property="og:locale" content="gl"><meta property="og:title" content="Relative paths"><meta property="og:description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta property="og:url" content="http://localhost/page-2/"><meta property="og:image" content="http://localhost/page-2/my-image.png"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@myUser"><meta name="description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta name="keywords" content="one, two"><meta name="robots" content="noindex, nofollow, noarchive"><meta name="theme-color" content="black"><meta name="generator" content="Lume testing"></head> <body> Hello world </body></html>', data: { basename: "page-2", children: "<html> <head> </head> <body> Hello world </body></html>", content: "<html> <head> </head> <body> Hello world </body></html>", date: [], mergedKeys: [ "tags", "metas", ], metas: [ "site", "title", "description", "image", "icon", "robots", "keywords", "twitter", "lang", "color", "generator", ], page: [ "src", "data", ], paginate: "paginate", search: [], tags: "Array(0)", url: "/page-2/", }, src: { asset: false, ext: ".vto", path: "/page-2", remote: undefined, }, }, { content: '<!DOCTYPE html><html><head><meta property="og:type" content="website"><meta property="og:site_name" content="My site"><meta property="og:locale" content="gl"><meta property="og:title" content="Title from page data"><meta property="og:description" content="THIS IS PAGE EXCERPT WILL BE USED AS META DESCRIPTION."><meta property="og:url" content="http://localhost/page-3/"><meta property="og:image" content="http://localhost/page-3/use-cover-as-meta-image.png"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@myUser"><meta name="description" content="THIS IS PAGE EXCERPT WILL BE USED AS META DESCRIPTION."><meta name="keywords" content="one, two"><meta name="robots" content="this robots will be overrided"><meta name="theme-color" content="black"><meta name="generator" content="Lume testing"></head><body><p>This is page excerpt will be used as meta description.</p><!--more--></body></html>', data: { basename: "page-3", children: "<p>This is page excerpt will be used as meta description.</p><!--more-->", content: "This is page excerpt will be used as meta description.<!--more-->", cover: "./use-cover-as-meta-image.png", date: [], excerpt: "This is page excerpt will be used as meta description.", header: [ "title", ], mergedKeys: [ "tags", "metas", ], metas: [ "site", "title", "description", "image", "icon", "robots", "keywords", "twitter", "lang", "color", "generator", ], page: [ "src", "data", ], paginate: "paginate", robots: "this robots will be overrided", search: [], tags: "Array(0)", url: "/page-3/", }, src: { asset: false, ext: ".md", path: "/page-3", remote: undefined, }, },]`;
lume

Version Info

Tagged at
7 months ago