tangled
alpha
login
or
join now
altagos.dev
/
website
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
removed darkvisitor
altagos.dev
8 months ago
e2959deb
72d75f3a
verified
This commit was signed with the committer's
known signature
.
altagos.dev
SSH Key Fingerprint:
SHA256:UbTjEcCZlc6GzQWLCuDK3D//HESWD2xFPkzue9XMras=
+156
-118
4 changed files
expand all
collapse all
unified
split
_config.ts
deno.lock
src
_includes
layouts
root.njk
robots.ts
+2
-12
_config.ts
···
22
22
import rehypeKatex from "npm:rehype-katex";
23
23
import remarkMath from "npm:remark-math";
24
24
25
25
-
// custom plugins
26
26
-
import robots from "./src/robots.ts";
27
27
-
28
25
// components
29
26
import Header from "./src/_components/Header.tsx";
30
27
···
43
40
src: "./src",
44
41
location: new URL(location),
45
42
});
46
46
-
47
47
-
site.use(robots({
48
48
-
env_var: "DARKVISITORS_API_KEY",
49
49
-
agent_types: [
50
50
-
"AI Data Scraper", "AI Assistant", "AI Search Crawler", "Undocumented AI Agent"
51
51
-
],
52
52
-
}));
53
43
54
44
site.use(jsx_preact());
55
45
···
84
74
site.use(toml());
85
75
86
76
site.copy("assets");
87
87
-
site.copy("404.html")
88
88
-
site.copy("well-known", ".well-known")
77
77
+
site.copy("404.html");
78
78
+
site.copy("well-known", ".well-known");
89
79
90
80
export default site;
+153
-63
deno.lock
···
1
1
{
2
2
-
"version": "4",
2
2
+
"version": "5",
3
3
"specifiers": {
4
4
"jsr:@davidbonnet/astring@1.8.6": "1.8.6",
5
5
"jsr:@std/cli@1.0.11": "1.0.11",
···
18
18
"jsr:@std/html@^1.0.3": "1.0.3",
19
19
"jsr:@std/http@1.0.12": "1.0.12",
20
20
"jsr:@std/io@0.225": "0.225.2",
21
21
+
"jsr:@std/json@1": "1.0.1",
21
22
"jsr:@std/jsonc@1.0.1": "1.0.1",
22
23
"jsr:@std/log@0.224.13": "0.224.13",
23
24
"jsr:@std/media-types@^1.1.0": "1.1.0",
···
31
32
"jsr:@std/yaml@^1.0.5": "1.0.5",
32
33
"npm:@js-temporal/polyfill@0.4.4": "0.4.4",
33
34
"npm:@mdx-js/mdx@3.1.0": "3.1.0",
35
35
+
"npm:@types/estree@1.0.6": "1.0.6",
34
36
"npm:date-fns@4.1.0": "4.1.0",
35
37
"npm:estree-walker@3.0.3": "3.0.3",
36
38
"npm:ico-endec@0.1.6": "0.1.6",
···
103
105
},
104
106
"@std/io@0.225.2": {
105
107
"integrity": "3c740cd4ee4c082e6cfc86458f47e2ab7cb353dc6234d5e9b1f91a2de5f4d6c7"
108
108
+
},
109
109
+
"@std/json@1.0.1": {
110
110
+
"integrity": "1f0f70737e8827f9acca086282e903677bc1bb0c8ffcd1f21bca60039563049f"
106
111
},
107
112
"@std/jsonc@1.0.1": {
108
108
-
"integrity": "6b36956e2a7cbb08ca5ad7fbec72e661e6217c202f348496ea88747636710dda"
113
113
+
"integrity": "6b36956e2a7cbb08ca5ad7fbec72e661e6217c202f348496ea88747636710dda",
114
114
+
"dependencies": [
115
115
+
"jsr:@std/json"
116
116
+
]
109
117
},
110
118
"@std/log@0.224.13": {
111
119
"integrity": "f04d82f676c9eb4306194ca166d296d9f1456fe4b7edf2a404a0d55c94d31df7",
···
146
154
},
147
155
"@img/sharp-darwin-arm64@0.33.5": {
148
156
"integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==",
149
149
-
"dependencies": [
157
157
+
"optionalDependencies": [
150
158
"@img/sharp-libvips-darwin-arm64"
151
151
-
]
159
159
+
],
160
160
+
"os": ["darwin"],
161
161
+
"cpu": ["arm64"]
152
162
},
153
163
"@img/sharp-darwin-x64@0.33.5": {
154
164
"integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==",
155
155
-
"dependencies": [
165
165
+
"optionalDependencies": [
156
166
"@img/sharp-libvips-darwin-x64"
157
157
-
]
167
167
+
],
168
168
+
"os": ["darwin"],
169
169
+
"cpu": ["x64"]
158
170
},
159
171
"@img/sharp-libvips-darwin-arm64@1.0.4": {
160
160
-
"integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="
172
172
+
"integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==",
173
173
+
"os": ["darwin"],
174
174
+
"cpu": ["arm64"]
161
175
},
162
176
"@img/sharp-libvips-darwin-x64@1.0.4": {
163
163
-
"integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="
177
177
+
"integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==",
178
178
+
"os": ["darwin"],
179
179
+
"cpu": ["x64"]
164
180
},
165
181
"@img/sharp-libvips-linux-arm64@1.0.4": {
166
166
-
"integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="
182
182
+
"integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==",
183
183
+
"os": ["linux"],
184
184
+
"cpu": ["arm64"]
167
185
},
168
186
"@img/sharp-libvips-linux-arm@1.0.5": {
169
169
-
"integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="
187
187
+
"integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==",
188
188
+
"os": ["linux"],
189
189
+
"cpu": ["arm"]
170
190
},
171
191
"@img/sharp-libvips-linux-s390x@1.0.4": {
172
172
-
"integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="
192
192
+
"integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==",
193
193
+
"os": ["linux"],
194
194
+
"cpu": ["s390x"]
173
195
},
174
196
"@img/sharp-libvips-linux-x64@1.0.4": {
175
175
-
"integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="
197
197
+
"integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==",
198
198
+
"os": ["linux"],
199
199
+
"cpu": ["x64"]
176
200
},
177
201
"@img/sharp-libvips-linuxmusl-arm64@1.0.4": {
178
178
-
"integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="
202
202
+
"integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==",
203
203
+
"os": ["linux"],
204
204
+
"cpu": ["arm64"]
179
205
},
180
206
"@img/sharp-libvips-linuxmusl-x64@1.0.4": {
181
181
-
"integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="
207
207
+
"integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==",
208
208
+
"os": ["linux"],
209
209
+
"cpu": ["x64"]
182
210
},
183
211
"@img/sharp-linux-arm64@0.33.5": {
184
212
"integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==",
185
185
-
"dependencies": [
213
213
+
"optionalDependencies": [
186
214
"@img/sharp-libvips-linux-arm64"
187
187
-
]
215
215
+
],
216
216
+
"os": ["linux"],
217
217
+
"cpu": ["arm64"]
188
218
},
189
219
"@img/sharp-linux-arm@0.33.5": {
190
220
"integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==",
191
191
-
"dependencies": [
221
221
+
"optionalDependencies": [
192
222
"@img/sharp-libvips-linux-arm"
193
193
-
]
223
223
+
],
224
224
+
"os": ["linux"],
225
225
+
"cpu": ["arm"]
194
226
},
195
227
"@img/sharp-linux-s390x@0.33.5": {
196
228
"integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==",
197
197
-
"dependencies": [
229
229
+
"optionalDependencies": [
198
230
"@img/sharp-libvips-linux-s390x"
199
199
-
]
231
231
+
],
232
232
+
"os": ["linux"],
233
233
+
"cpu": ["s390x"]
200
234
},
201
235
"@img/sharp-linux-x64@0.33.5": {
202
236
"integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==",
203
203
-
"dependencies": [
237
237
+
"optionalDependencies": [
204
238
"@img/sharp-libvips-linux-x64"
205
205
-
]
239
239
+
],
240
240
+
"os": ["linux"],
241
241
+
"cpu": ["x64"]
206
242
},
207
243
"@img/sharp-linuxmusl-arm64@0.33.5": {
208
244
"integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==",
209
209
-
"dependencies": [
245
245
+
"optionalDependencies": [
210
246
"@img/sharp-libvips-linuxmusl-arm64"
211
211
-
]
247
247
+
],
248
248
+
"os": ["linux"],
249
249
+
"cpu": ["arm64"]
212
250
},
213
251
"@img/sharp-linuxmusl-x64@0.33.5": {
214
252
"integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==",
215
215
-
"dependencies": [
253
253
+
"optionalDependencies": [
216
254
"@img/sharp-libvips-linuxmusl-x64"
217
217
-
]
255
255
+
],
256
256
+
"os": ["linux"],
257
257
+
"cpu": ["x64"]
218
258
},
219
259
"@img/sharp-wasm32@0.33.5": {
220
260
"integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==",
221
261
"dependencies": [
222
262
"@emnapi/runtime"
223
223
-
]
263
263
+
],
264
264
+
"cpu": ["wasm32"]
224
265
},
225
266
"@img/sharp-win32-ia32@0.33.5": {
226
226
-
"integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="
267
267
+
"integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==",
268
268
+
"os": ["win32"],
269
269
+
"cpu": ["ia32"]
227
270
},
228
271
"@img/sharp-win32-x64@0.33.5": {
229
229
-
"integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="
272
272
+
"integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==",
273
273
+
"os": ["win32"],
274
274
+
"cpu": ["x64"]
230
275
},
231
276
"@jridgewell/gen-mapping@0.3.8": {
232
277
"integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
···
296
341
]
297
342
},
298
343
"@parcel/watcher-android-arm64@2.5.1": {
299
299
-
"integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA=="
344
344
+
"integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==",
345
345
+
"os": ["android"],
346
346
+
"cpu": ["arm64"]
300
347
},
301
348
"@parcel/watcher-darwin-arm64@2.5.1": {
302
302
-
"integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw=="
349
349
+
"integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==",
350
350
+
"os": ["darwin"],
351
351
+
"cpu": ["arm64"]
303
352
},
304
353
"@parcel/watcher-darwin-x64@2.5.1": {
305
305
-
"integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg=="
354
354
+
"integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==",
355
355
+
"os": ["darwin"],
356
356
+
"cpu": ["x64"]
306
357
},
307
358
"@parcel/watcher-freebsd-x64@2.5.1": {
308
308
-
"integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ=="
359
359
+
"integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==",
360
360
+
"os": ["freebsd"],
361
361
+
"cpu": ["x64"]
309
362
},
310
363
"@parcel/watcher-linux-arm-glibc@2.5.1": {
311
311
-
"integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA=="
364
364
+
"integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==",
365
365
+
"os": ["linux"],
366
366
+
"cpu": ["arm"]
312
367
},
313
368
"@parcel/watcher-linux-arm-musl@2.5.1": {
314
314
-
"integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q=="
369
369
+
"integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==",
370
370
+
"os": ["linux"],
371
371
+
"cpu": ["arm"]
315
372
},
316
373
"@parcel/watcher-linux-arm64-glibc@2.5.1": {
317
317
-
"integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w=="
374
374
+
"integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==",
375
375
+
"os": ["linux"],
376
376
+
"cpu": ["arm64"]
318
377
},
319
378
"@parcel/watcher-linux-arm64-musl@2.5.1": {
320
320
-
"integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg=="
379
379
+
"integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==",
380
380
+
"os": ["linux"],
381
381
+
"cpu": ["arm64"]
321
382
},
322
383
"@parcel/watcher-linux-x64-glibc@2.5.1": {
323
323
-
"integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A=="
384
384
+
"integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==",
385
385
+
"os": ["linux"],
386
386
+
"cpu": ["x64"]
324
387
},
325
388
"@parcel/watcher-linux-x64-musl@2.5.1": {
326
326
-
"integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg=="
389
389
+
"integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==",
390
390
+
"os": ["linux"],
391
391
+
"cpu": ["x64"]
327
392
},
328
393
"@parcel/watcher-win32-arm64@2.5.1": {
329
329
-
"integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw=="
394
394
+
"integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==",
395
395
+
"os": ["win32"],
396
396
+
"cpu": ["arm64"]
330
397
},
331
398
"@parcel/watcher-win32-ia32@2.5.1": {
332
332
-
"integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ=="
399
399
+
"integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==",
400
400
+
"os": ["win32"],
401
401
+
"cpu": ["ia32"]
333
402
},
334
403
"@parcel/watcher-win32-x64@2.5.1": {
335
335
-
"integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA=="
404
404
+
"integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==",
405
405
+
"os": ["win32"],
406
406
+
"cpu": ["x64"]
336
407
},
337
408
"@parcel/watcher@2.5.1": {
338
409
"integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==",
339
410
"dependencies": [
411
411
+
"detect-libc@1.0.3",
412
412
+
"is-glob",
413
413
+
"micromatch",
414
414
+
"node-addon-api"
415
415
+
],
416
416
+
"optionalDependencies": [
340
417
"@parcel/watcher-android-arm64",
341
418
"@parcel/watcher-darwin-arm64",
342
419
"@parcel/watcher-darwin-x64",
···
349
426
"@parcel/watcher-linux-x64-musl",
350
427
"@parcel/watcher-win32-arm64",
351
428
"@parcel/watcher-win32-ia32",
352
352
-
"@parcel/watcher-win32-x64",
353
353
-
"detect-libc@1.0.3",
354
354
-
"is-glob",
355
355
-
"micromatch",
356
356
-
"node-addon-api"
357
357
-
]
429
429
+
"@parcel/watcher-win32-x64"
430
430
+
],
431
431
+
"scripts": true
358
432
},
359
433
"@types/acorn@4.0.6": {
360
434
"integrity": "sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==",
···
417
491
]
418
492
},
419
493
"acorn@8.14.0": {
420
420
-
"integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA=="
494
494
+
"integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
495
495
+
"bin": true
421
496
},
422
497
"argparse@2.0.1": {
423
498
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
···
426
501
"integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA=="
427
502
},
428
503
"astring@1.9.0": {
429
429
-
"integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg=="
504
504
+
"integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==",
505
505
+
"bin": true
430
506
},
431
507
"bail@2.0.2": {
432
508
"integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw=="
···
518
594
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="
519
595
},
520
596
"detect-libc@1.0.3": {
521
521
-
"integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg=="
597
597
+
"integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",
598
598
+
"bin": true
522
599
},
523
600
"detect-libc@2.0.3": {
524
601
"integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw=="
···
777
854
"integrity": "sha512-XvqR7FgOHtWupfMiigNzmh+MgUVmDGU2kXZm899ZkPfcuoPuFxyHmXsgATDpFZDAXCI8tvinaVcDo8PIIJSo4A==",
778
855
"dependencies": [
779
856
"commander@8.3.0"
780
780
-
]
857
857
+
],
858
858
+
"bin": true
781
859
},
782
860
"linkify-it@5.0.0": {
783
861
"integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
···
809
887
"mdurl",
810
888
"punycode.js",
811
889
"uc.micro"
812
812
-
]
890
890
+
],
891
891
+
"bin": true
813
892
},
814
893
"markdown-table@3.0.4": {
815
894
"integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="
···
1368
1447
"a-sync-waterfall",
1369
1448
"asap",
1370
1449
"commander@5.1.0"
1371
1371
-
]
1450
1450
+
],
1451
1451
+
"bin": true
1372
1452
},
1373
1453
"parse-entities@4.0.2": {
1374
1454
"integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",
···
1525
1605
"sass@1.83.4": {
1526
1606
"integrity": "sha512-B1bozCeNQiOgDcLd33e2Cs2U60wZwjUUXzh900ZyQF5qUasvMdDZYbQ566LJu7cqR+sAHlAfO6RMkaID5s6qpA==",
1527
1607
"dependencies": [
1528
1528
-
"@parcel/watcher",
1529
1608
"chokidar",
1530
1609
"immutable",
1531
1610
"source-map-js"
1532
1532
-
]
1611
1611
+
],
1612
1612
+
"optionalDependencies": [
1613
1613
+
"@parcel/watcher"
1614
1614
+
],
1615
1615
+
"bin": true
1533
1616
},
1534
1617
"semver@7.7.1": {
1535
1535
-
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA=="
1618
1618
+
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
1619
1619
+
"bin": true
1536
1620
},
1537
1621
"sharp@0.33.5": {
1538
1622
"integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==",
1539
1623
"dependencies": [
1624
1624
+
"color",
1625
1625
+
"detect-libc@2.0.3",
1626
1626
+
"semver"
1627
1627
+
],
1628
1628
+
"optionalDependencies": [
1540
1629
"@img/sharp-darwin-arm64",
1541
1630
"@img/sharp-darwin-x64",
1542
1631
"@img/sharp-libvips-darwin-arm64",
···
1555
1644
"@img/sharp-linuxmusl-x64",
1556
1645
"@img/sharp-wasm32",
1557
1646
"@img/sharp-win32-ia32",
1558
1558
-
"@img/sharp-win32-x64",
1559
1559
-
"color",
1560
1560
-
"detect-libc@2.0.3",
1561
1561
-
"semver"
1562
1562
-
]
1647
1647
+
"@img/sharp-win32-x64"
1648
1648
+
],
1649
1649
+
"scripts": true
1563
1650
},
1564
1651
"simple-swizzle@0.2.2": {
1565
1652
"integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
···
1609
1696
"acorn",
1610
1697
"commander@2.20.3",
1611
1698
"source-map-support"
1612
1612
-
]
1699
1699
+
],
1700
1700
+
"bin": true
1613
1701
},
1614
1702
"to-regex-range@5.0.1": {
1615
1703
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
···
1865
1953
"https://deno.land/x/lume@v2.5.1/core/fs.ts": "0409ca756906a066300e8bdbad590a122aeffa4fa4192cd20b854c6f555bf00d",
1866
1954
"https://deno.land/x/lume@v2.5.1/core/loaders/binary.ts": "bb1e1cf3faac49f6007dc6814168dc0f633da17356db18e68862e4b2a87a3f33",
1867
1955
"https://deno.land/x/lume@v2.5.1/core/loaders/json.ts": "632e840340edf7d79091fb37474a1cbf86dd2d218090fb6f6c0420f5f5e9c2ce",
1956
1956
+
"https://deno.land/x/lume@v2.5.1/core/loaders/mod.ts": "f33af1a2fa0913cf393cd9ef6bf5aea2d03d1058e8966ad7f1483efbcc7df118",
1868
1957
"https://deno.land/x/lume@v2.5.1/core/loaders/module.ts": "abcb210fa6724b83407407cd0f7ef90462b35a2017bc135a3d124dd7f38843f6",
1869
1958
"https://deno.land/x/lume@v2.5.1/core/loaders/text.ts": "42860fc3482651fa6cfba18a734bb548d6e6e1163bf1015c2abc447ab150acbd",
1870
1959
"https://deno.land/x/lume@v2.5.1/core/loaders/toml.ts": "72ddfef2deea62815c28e27faa2c5356e09b3109e9547e47a6defea3d3332452",
···
1966
2055
"https://deno.land/x/lume@v2.5.1/plugins/url.ts": "3718185697778f3b4dd17924d9d282d0a5a74030301e7fcae8a7f1b21f0ef9a9",
1967
2056
"https://deno.land/x/lume@v2.5.1/plugins/vento.ts": "cc1db79fe3f75757269fd75ff18382d222ec3bb00a4329ddb56e0a00f28c0302",
1968
2057
"https://deno.land/x/lume@v2.5.1/plugins/yaml.ts": "8cb20b4bf3a265be0d975235b537c9807db2f34d357fc27546c05d628d3fda9f",
2058
2058
+
"https://deno.land/x/lume@v2.5.1/types.ts": "516bec311f10083c5b1d8109e8afd17f02b49cc62c45dca53706f286cb855dba",
1969
2059
"https://deno.land/x/vento@v1.12.15/deps.ts": "155958dfada8d8cb3c8a001413c759928647b23e0e9db25195614549b58d085f",
1970
2060
"https://deno.land/x/vento@v1.12.15/mod.ts": "cfaac455f70af8e59aa0c03ef39b641635094225255f0fbaa76f4771e683f2ca",
1971
2061
"https://deno.land/x/vento@v1.12.15/plugins/auto_trim.ts": "503137c3f5cec20e0c491d7963b0dc310de1a6a2e74d41913bbf6475eb1c807e",
+1
-1
src/_includes/layouts/root.njk
···
26
26
{% include "layouts/footer.njk" %}
27
27
</div>
28
28
</body>
29
29
-
</html>
29
29
+
</html>
-42
src/robots.ts
···
1
1
-
import Site from "lume/core/site.ts";
2
2
-
3
3
-
interface Options {
4
4
-
env_var: string;
5
5
-
agent_types: string[];
6
6
-
}
7
7
-
8
8
-
export default function (options: Options) {
9
9
-
return (site: Site) => {
10
10
-
if (Deno.env.get("DARKVISITORS_ENABLED") === "0") {
11
11
-
return;
12
12
-
}
13
13
-
14
14
-
site.addEventListener("beforeSave", async () => {
15
15
-
const api_key = Deno.env.get(options.env_var);
16
16
-
if (api_key == undefined) {
17
17
-
console.error(options.env_var + " is not defined");
18
18
-
Deno.exit(1);
19
19
-
}
20
20
-
21
21
-
const robotsTXT = await fetch("https://api.darkvisitors.com/robots-txts", {
22
22
-
method: "POST",
23
23
-
headers: {
24
24
-
"Content-Type": "application/json",
25
25
-
"Authorization": "Bearer " + api_key,
26
26
-
},
27
27
-
body: JSON.stringify({
28
28
-
agent_types: options.agent_types,
29
29
-
disallow: "/"
30
30
-
})
31
31
-
});
32
32
-
if (robotsTXT.status != 200) {
33
33
-
console.error("Failed to fetch robots.txt (error code: " + robotsTXT.status + " " + robotsTXT.statusText + ")");
34
34
-
Deno.exit(1);;
35
35
-
}
36
36
-
37
37
-
const robots = await site.getOrCreatePage("robots.txt");
38
38
-
const content = robots.content as string || "";
39
39
-
robots.content = `${content}\n${await robotsTXT.text()}\n`
40
40
-
});
41
41
-
};
42
42
-
}