this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

minor changes

Altagos c21fd724 f2b0a0bf

+114 -24
+11 -7
_config.ts
··· 13 13 import nunjucks from "lume/plugins/nunjucks.ts"; 14 14 import reading_info from "lume/plugins/reading_info.ts"; 15 15 import sass from "lume/plugins/sass.ts"; 16 + import sitemap from "lume/plugins/sitemap.ts"; 16 17 import slugify_urls from "lume/plugins/slugify_urls.ts"; 18 + import terser from "lume/plugins/terser.ts"; 17 19 import toml from "lume/plugins/toml.ts"; 18 20 19 21 // mdx plugins ··· 33 35 const site = lume({ 34 36 src: "./src", 35 37 }); 38 + 39 + site.use(robots({ 40 + env_var: "DARKVISITORS_API_KEY", 41 + agent_types: [ 42 + "AI Data Scraper", "AI Assistant", "AI Search Crawler", "Undocumented AI Agent" 43 + ], 44 + })); 36 45 37 46 site.use(jsx_preact()); 38 47 ··· 54 63 site.use(nunjucks()); 55 64 site.use(reading_info()); 56 65 site.use(sass()); 66 + site.use(sitemap(/* Options */)); 57 67 site.use( 58 68 slugify_urls({ 59 69 extensions: [".html"], ··· 62 72 separator: "-", 63 73 }), 64 74 ); 75 + site.use(terser(/* Options */)); 65 76 site.use(toml()); 66 - 67 - site.use(robots({ 68 - env_var: "DARKVISITORS_API_KEY", 69 - agent_types: [ 70 - "AI Data Scraper", "AI Assistant", "AI Search Crawler", "Undocumented AI Agent" 71 - ], 72 - })); 73 77 74 78 site.copy("assets"); 75 79
+65
deno.lock
··· 42 42 "npm:sharp@0.33.2": "npm:sharp@0.33.2", 43 43 "npm:sharp@0.33.3": "npm:sharp@0.33.3", 44 44 "npm:svg2png-wasm@1.4.1": "npm:svg2png-wasm@1.4.1", 45 + "npm:terser@5.30.3": "npm:terser@5.30.3", 45 46 "npm:unidecode@0.1.8": "npm:unidecode@0.1.8", 46 47 "npm:unidecode@1.0.1": "npm:unidecode@1.0.1", 47 48 "npm:unified@11.0.4": "npm:unified@11.0.4" ··· 253 254 "integrity": "sha512-viT4fUIDKnli3IfOephGnolMzhz5VaTvDRkYqtZxOMIoMQ4MrAziO7pT1nVnOt2FAm7qW5aa+CCc13aEY6Le0g==", 254 255 "dependencies": {} 255 256 }, 257 + "@jridgewell/gen-mapping@0.3.5": { 258 + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", 259 + "dependencies": { 260 + "@jridgewell/set-array": "@jridgewell/set-array@1.2.1", 261 + "@jridgewell/sourcemap-codec": "@jridgewell/sourcemap-codec@1.4.15", 262 + "@jridgewell/trace-mapping": "@jridgewell/trace-mapping@0.3.25" 263 + } 264 + }, 265 + "@jridgewell/resolve-uri@3.1.2": { 266 + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 267 + "dependencies": {} 268 + }, 269 + "@jridgewell/set-array@1.2.1": { 270 + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 271 + "dependencies": {} 272 + }, 273 + "@jridgewell/source-map@0.3.6": { 274 + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", 275 + "dependencies": { 276 + "@jridgewell/gen-mapping": "@jridgewell/gen-mapping@0.3.5", 277 + "@jridgewell/trace-mapping": "@jridgewell/trace-mapping@0.3.25" 278 + } 279 + }, 280 + "@jridgewell/sourcemap-codec@1.4.15": { 281 + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 282 + "dependencies": {} 283 + }, 284 + "@jridgewell/trace-mapping@0.3.25": { 285 + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 286 + "dependencies": { 287 + "@jridgewell/resolve-uri": "@jridgewell/resolve-uri@3.1.2", 288 + "@jridgewell/sourcemap-codec": "@jridgewell/sourcemap-codec@1.4.15" 289 + } 290 + }, 256 291 "@js-temporal/polyfill@0.4.4": { 257 292 "integrity": "sha512-2X6bvghJ/JAoZO52lbgyAPFj8uCflhTo2g7nkFzEQdXd/D8rEeD4HtmTEpmtGCva260fcd66YNXBOYdnmHqSOg==", 258 293 "dependencies": { ··· 687 722 "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", 688 723 "dependencies": {} 689 724 }, 725 + "buffer-from@1.1.2": { 726 + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 727 + "dependencies": {} 728 + }, 690 729 "ccount@2.0.1": { 691 730 "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", 692 731 "dependencies": {} ··· 754 793 }, 755 794 "comma-separated-tokens@2.0.3": { 756 795 "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", 796 + "dependencies": {} 797 + }, 798 + "commander@2.20.3": { 799 + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 757 800 "dependencies": {} 758 801 }, 759 802 "commander@5.1.0": { ··· 2146 2189 "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 2147 2190 "dependencies": {} 2148 2191 }, 2192 + "source-map-support@0.5.21": { 2193 + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 2194 + "dependencies": { 2195 + "buffer-from": "buffer-from@1.1.2", 2196 + "source-map": "source-map@0.6.1" 2197 + } 2198 + }, 2199 + "source-map@0.6.1": { 2200 + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 2201 + "dependencies": {} 2202 + }, 2149 2203 "source-map@0.7.4": { 2150 2204 "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", 2151 2205 "dependencies": {} ··· 2176 2230 "svg2png-wasm@1.4.1": { 2177 2231 "integrity": "sha512-ZFy1NtwZVAsslaTQoI+/QqX2sg0vjmgJ/jGAuLZZvYcRlndI54hLPiwLC9JzXlFBerfxN5JiS7kpEUG0mrXS3Q==", 2178 2232 "dependencies": {} 2233 + }, 2234 + "terser@5.30.3": { 2235 + "integrity": "sha512-STdUgOUx8rLbMGO9IOwHLpCqolkDITFFQSMYYwKE1N2lY6MVSaeoi10z/EhWxRc6ybqoVmKSkhKYH/XUpl7vSA==", 2236 + "dependencies": { 2237 + "@jridgewell/source-map": "@jridgewell/source-map@0.3.6", 2238 + "acorn": "acorn@8.11.3", 2239 + "commander": "commander@2.20.3", 2240 + "source-map-support": "source-map-support@0.5.21" 2241 + } 2179 2242 }, 2180 2243 "to-regex-range@5.0.1": { 2181 2244 "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", ··· 3325 3388 "https://deno.land/x/lume@v2.1.4/deps/sharp.ts": "d2a91d7e3b606e4b4f93ca127ee84b1bb2e949a640190beba91f8d6bd40d6203", 3326 3389 "https://deno.land/x/lume@v2.1.4/deps/svg2png.ts": "0d86ae8c7fc92a256c5674581f2778cf827aff21992ec138830f39971c02c0bd", 3327 3390 "https://deno.land/x/lume@v2.1.4/deps/temporal.ts": "1958b134c4186b0ab39316fa33ba19d1a4203e2ea445080429d60d296b91a552", 3391 + "https://deno.land/x/lume@v2.1.4/deps/terser.ts": "1b80800dbc78e757038b968bd622f0fe1ba815c429a6dbf173a3fb2182f2f6d3", 3328 3392 "https://deno.land/x/lume@v2.1.4/deps/toml.ts": "8939d4df045ae45943f7055de6be67fe336929d4f26dd1aa0ae4409c9164cc5d", 3329 3393 "https://deno.land/x/lume@v2.1.4/deps/unidecode.ts": "2e20d6dccfbf70e7ee11ba876aa602b91009f4ead9be7397091e0310485c0e61", 3330 3394 "https://deno.land/x/lume@v2.1.4/deps/vento.ts": "67a21075aabbc3adefe7d0c948a11f509d5ac9773b0985f192d449b895f949c5", ··· 3358 3422 "https://deno.land/x/lume@v2.1.4/plugins/sitemap.ts": "c33aba43239e39b0d085760ffc5c845421011c361bc08d9c2b07cf0c59ce145e", 3359 3423 "https://deno.land/x/lume@v2.1.4/plugins/slugify_urls.ts": "df83d8b8b007bbd7b0dfb9788c458f35dd303a062fdf2175bdf2b53b8cfd2165", 3360 3424 "https://deno.land/x/lume@v2.1.4/plugins/source_maps.ts": "2fb5a23d22768a92e04c6feefe2c704dd8d970780a90d0e069f784353f5c545f", 3425 + "https://deno.land/x/lume@v2.1.4/plugins/terser.ts": "f3b452644d698e40ad4cc5c642b0aa162b02ca720783de09996f558d2cf02e1d", 3361 3426 "https://deno.land/x/lume@v2.1.4/plugins/toml.ts": "60191e1e8fd0922def0b3f0eaad13988217511571a54659481759db4b0ca4f82", 3362 3427 "https://deno.land/x/lume@v2.1.4/plugins/url.ts": "3d298886cb16e1110d427d2f257de6c2ae0da3cd7076b6abcbbd41e7536ed094", 3363 3428 "https://deno.land/x/lume@v2.1.4/plugins/vento.ts": "03b2121ca5e14b589d9add0a390e0c0c4e591436617ef899011440325c878392",
+6 -3
src/_data/metas.toml
··· 1 - site = "Altagos' Portfolio" 2 - description = "Work in Progress Personal Portfolio by Altagos" 1 + # description = "Work in Progress Personal Portfolio by Altagos" 3 2 # title = "Hi there 👋" 3 + color = "#2d2d2d" 4 4 icon = "/favicon.ico" 5 5 lang = "en" 6 + robots = true 7 + site = "Altagos' Portfolio" 6 8 type = "portfolio" 7 - url = "https://altagos.me/" 9 + twitter = "@Altagos_" 10 + url = "https://altagos.dev/"
+1 -1
src/_includes/layouts/root.njk
··· 3 3 <head> 4 4 <meta charset="UTF-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 - <title>{{ metas.title }} | Altagos</title> 6 + <title>{{ metas.title or title }} | Altagos</title> 7 7 8 8 <link rel="stylesheet" href="/altagos.css"> 9 9
-5
src/_includes/sass/_footer.scss
··· 34 34 li { 35 35 padding-right: 15px; 36 36 font-size: 14px; 37 - 38 - a { 39 - text-decoration: underline; 40 - color: var(--text-color); 41 - } 42 37 } 43 38 } 44 39
+17 -5
src/_includes/sass/root.scss
··· 3 3 @use "socials"; 4 4 5 5 :root { 6 - --background-color: var(--arc-palette-background, #eeeeee); 6 + --background-color: var(--arc-palette-background, #eee); 7 7 --background-extra-color: var(--arc-palette-backgroundExtra, #ddd); 8 8 --title-color: var(--arc-palette-title, #333); 9 9 --subtitle-color: var(--arc-palette-subtitle, #333); 10 - --link-color: var(--arc-palette-maxContrastColor, #000); 11 - --text-color: var(--arc-palette-maxContrastColor, #333); 12 - --color-primary: var(--arc-palette-foregroundPrimary, #fff); 13 - --color-subtle: var(--arc-palette-foregroundSecondary, #333); 10 + --link-color: var(--arc-palette-title, #000); 11 + --text-color: var(--arc-palette-foregroundPrimary, #333); 12 + --color-primary: var(--arc-palette-foregroundPrimary, #333); 13 + --color-subtle: var(--arc-palette-foregroundSecondary, #eee); 14 14 --color-hover: var(--arc-palette-hover, #0000001a); 15 15 --color-focus: var(--arc-palette-focus); 16 16 --font-size: 16px; ··· 87 87 color: #cccccc; 88 88 background-color: #2d2d2d; 89 89 padding: 3px 6px; 90 + } 91 + } 92 + 93 + code { 94 + font-family: "Berkely Mono", monospace; 95 + } 96 + 97 + a { 98 + color: var(--link-color); 99 + 100 + :visited { 101 + color: var(--link-color); 90 102 } 91 103 } 92 104
+11 -2
src/bettermotherfuckingwebsite.mdx
··· 1 1 --- 2 2 draft: false 3 + title: "This is still a motherfucking website." 4 + 5 + metas: 6 + description: "This is still a motherfucking website" 3 7 --- 8 + 9 + Source: [bettermotherfuckingwebsite.com](http://bettermotherfuckingwebsite.com/) 10 + 11 + --- 12 + 4 13 # This is still a motherfucking website. 5 14 And it's more fucking perfect than the last guy's. 6 15 ··· 38 47 39 48 ``` 40 49 "You're a fucking moron if you use default browser styles." 41 - - Eleanor Roosevelt => 50 + - Eleanor Roosevelt 42 51 ``` 43 52 --- 44 53 45 54 ## Epilogue 46 - Inspired by the geniuses behind motherfuckingwebsite.com and txti. 55 + Inspired by the geniuses behind [motherfuckingwebsite.com](http://motherfuckingwebsite.com/) and [txti](http://txti.es/). 47 56 48 57 This page—that isn't a total fucking eyesore—was created by me with help from him.
+1
src/index.mdx
··· 2 2 metas: 3 3 title: "Work in Progress" 4 4 note: "Probably forever..." 5 + description: "Work in Progress Personal Portfolio by Altagos" 5 6 ---
+2 -1
src/robots.ts
··· 35 35 } 36 36 37 37 const robots = await site.getOrCreatePage("robots.txt"); 38 - robots.content = await robotsTXT.text(); 38 + const content = robots.content as string || ""; 39 + robots.content = `${content}\n${await robotsTXT.text()}\n` 39 40 }); 40 41 }; 41 42 }