diff --git a/package.json b/package.json index 8738cd5..1b75f56 100644 --- a/package.json +++ b/package.json @@ -91,5 +91,10 @@ "rehype-callouts": "^2.2.0", "subset-font": "^2.5.0" }, - "packageManager": "pnpm@9.14.4" + "packageManager": "pnpm@9.14.4", + "pnpm": { + "overrides": { + "sharp": "0.35.3" + } + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cbfde72..1b1db91 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + sharp: 0.35.3 + importers: .: @@ -13,7 +16,7 @@ importers: version: 0.9.9(prettier@3.9.5)(typescript@6.0.3) '@astrojs/cloudflare': specifier: ^14.1.4 - version: 14.1.4(@types/node@26.1.1)(astro@7.1.3(@astrojs/markdown-remark@7.2.1)(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)(@types/node@26.1.1)(jiti@2.7.0)(rollup@2.80.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(workerd@1.20260708.1)(wrangler@4.110.0)(yaml@2.9.0) + version: 14.1.4(@types/node@26.1.1)(astro@7.1.3(@astrojs/markdown-remark@7.2.1)(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)(@types/node@26.1.1)(jiti@2.7.0)(rollup@2.80.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(workerd@1.20260708.1)(wrangler@4.110.0(@types/node@26.1.1))(yaml@2.9.0) '@astrojs/markdown-remark': specifier: ^7.2.1 version: 7.2.1 @@ -162,7 +165,7 @@ importers: specifier: ^0.9.4 version: 0.9.5 sharp: - specifier: ^0.35.3 + specifier: 0.35.3 version: 0.35.3(@types/node@26.1.1) stylus: specifier: ^0.64.0 @@ -184,7 +187,7 @@ importers: version: 5.1.0 wrangler: specifier: ^4.107.1 - version: 4.110.0 + version: 4.110.0(@types/node@26.1.1) devDependencies: '@astrojs/ts-plugin': specifier: ^1.10.10 @@ -1374,24 +1377,12 @@ packages: resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} engines: {node: '>=18'} - '@img/sharp-darwin-arm64@0.34.5': - resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [darwin] - '@img/sharp-darwin-arm64@0.35.3': resolution: {integrity: sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [darwin] - '@img/sharp-darwin-x64@0.34.5': - resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [darwin] - '@img/sharp-darwin-x64@0.35.3': resolution: {integrity: sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==} engines: {node: '>=20.9.0'} @@ -1403,207 +1394,104 @@ packages: engines: {node: '>=20.9.0'} os: [freebsd] - '@img/sharp-libvips-darwin-arm64@1.2.4': - resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} - cpu: [arm64] - os: [darwin] - '@img/sharp-libvips-darwin-arm64@1.3.2': resolution: {integrity: sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==} cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.2.4': - resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} - cpu: [x64] - os: [darwin] - '@img/sharp-libvips-darwin-x64@1.3.2': resolution: {integrity: sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==} cpu: [x64] os: [darwin] - '@img/sharp-libvips-linux-arm64@1.2.4': - resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} - cpu: [arm64] - os: [linux] - '@img/sharp-libvips-linux-arm64@1.3.2': resolution: {integrity: sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linux-arm@1.2.4': - resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} - cpu: [arm] - os: [linux] - '@img/sharp-libvips-linux-arm@1.3.2': resolution: {integrity: sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==} cpu: [arm] os: [linux] - '@img/sharp-libvips-linux-ppc64@1.2.4': - resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} - cpu: [ppc64] - os: [linux] - '@img/sharp-libvips-linux-ppc64@1.3.2': resolution: {integrity: sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==} cpu: [ppc64] os: [linux] - '@img/sharp-libvips-linux-riscv64@1.2.4': - resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} - cpu: [riscv64] - os: [linux] - '@img/sharp-libvips-linux-riscv64@1.3.2': resolution: {integrity: sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==} cpu: [riscv64] os: [linux] - '@img/sharp-libvips-linux-s390x@1.2.4': - resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} - cpu: [s390x] - os: [linux] - '@img/sharp-libvips-linux-s390x@1.3.2': resolution: {integrity: sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==} cpu: [s390x] os: [linux] - '@img/sharp-libvips-linux-x64@1.2.4': - resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} - cpu: [x64] - os: [linux] - '@img/sharp-libvips-linux-x64@1.3.2': resolution: {integrity: sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==} cpu: [x64] os: [linux] - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} - cpu: [arm64] - os: [linux] - '@img/sharp-libvips-linuxmusl-arm64@1.3.2': resolution: {integrity: sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} - cpu: [x64] - os: [linux] - '@img/sharp-libvips-linuxmusl-x64@1.3.2': resolution: {integrity: sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==} cpu: [x64] os: [linux] - '@img/sharp-linux-arm64@0.34.5': - resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [linux] - '@img/sharp-linux-arm64@0.35.3': resolution: {integrity: sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] - '@img/sharp-linux-arm@0.34.5': - resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm] - os: [linux] - '@img/sharp-linux-arm@0.35.3': resolution: {integrity: sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==} engines: {node: '>=20.9.0'} cpu: [arm] os: [linux] - '@img/sharp-linux-ppc64@0.34.5': - resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [ppc64] - os: [linux] - '@img/sharp-linux-ppc64@0.35.3': resolution: {integrity: sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==} engines: {node: '>=20.9.0'} cpu: [ppc64] os: [linux] - '@img/sharp-linux-riscv64@0.34.5': - resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [riscv64] - os: [linux] - '@img/sharp-linux-riscv64@0.35.3': resolution: {integrity: sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==} engines: {node: '>=20.9.0'} cpu: [riscv64] os: [linux] - '@img/sharp-linux-s390x@0.34.5': - resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [s390x] - os: [linux] - '@img/sharp-linux-s390x@0.35.3': resolution: {integrity: sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==} engines: {node: '>=20.9.0'} cpu: [s390x] os: [linux] - '@img/sharp-linux-x64@0.34.5': - resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [linux] - '@img/sharp-linux-x64@0.35.3': resolution: {integrity: sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] - '@img/sharp-linuxmusl-arm64@0.34.5': - resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [linux] - '@img/sharp-linuxmusl-arm64@0.35.3': resolution: {integrity: sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] - '@img/sharp-linuxmusl-x64@0.34.5': - resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [linux] - '@img/sharp-linuxmusl-x64@0.35.3': resolution: {integrity: sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] - '@img/sharp-wasm32@0.34.5': - resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [wasm32] - '@img/sharp-wasm32@0.35.3': resolution: {integrity: sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==} engines: {node: '>=20.9.0'} @@ -1613,36 +1501,18 @@ packages: engines: {node: '>=20.9.0'} cpu: [wasm32] - '@img/sharp-win32-arm64@0.34.5': - resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [win32] - '@img/sharp-win32-arm64@0.35.3': resolution: {integrity: sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [win32] - '@img/sharp-win32-ia32@0.34.5': - resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [ia32] - os: [win32] - '@img/sharp-win32-ia32@0.35.3': resolution: {integrity: sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==} engines: {node: ^20.9.0} cpu: [ia32] os: [win32] - '@img/sharp-win32-x64@0.34.5': - resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [win32] - '@img/sharp-win32-x64@0.35.3': resolution: {integrity: sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==} engines: {node: '>=20.9.0'} @@ -4883,10 +4753,6 @@ packages: resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==} engines: {node: '>= 0.4'} - sharp@0.34.5: - resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - sharp@0.35.3: resolution: {integrity: sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==} engines: {node: '>=20.9.0'} @@ -5719,15 +5585,15 @@ snapshots: - prettier - prettier-plugin-astro - '@astrojs/cloudflare@14.1.4(@types/node@26.1.1)(astro@7.1.3(@astrojs/markdown-remark@7.2.1)(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)(@types/node@26.1.1)(jiti@2.7.0)(rollup@2.80.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(workerd@1.20260708.1)(wrangler@4.110.0)(yaml@2.9.0)': + '@astrojs/cloudflare@14.1.4(@types/node@26.1.1)(astro@7.1.3(@astrojs/markdown-remark@7.2.1)(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)(@types/node@26.1.1)(jiti@2.7.0)(rollup@2.80.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(workerd@1.20260708.1)(wrangler@4.110.0(@types/node@26.1.1))(yaml@2.9.0)': dependencies: '@astrojs/internal-helpers': 0.10.1 '@astrojs/underscore-redirects': 1.0.3 - '@cloudflare/vite-plugin': 1.44.0(vite@8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(workerd@1.20260708.1)(wrangler@4.110.0) + '@cloudflare/vite-plugin': 1.44.0(@types/node@26.1.1)(vite@8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(workerd@1.20260708.1)(wrangler@4.110.0(@types/node@26.1.1)) astro: 7.1.3(@astrojs/markdown-remark@7.2.1)(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)(@types/node@26.1.1)(jiti@2.7.0)(rollup@2.80.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0) piccolore: 0.1.3 vite: 8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0) - wrangler: 4.110.0 + wrangler: 4.110.0(@types/node@26.1.1) transitivePeerDependencies: - '@types/node' - '@vitejs/devtools' @@ -6819,15 +6685,16 @@ snapshots: optionalDependencies: workerd: 1.20260708.1 - '@cloudflare/vite-plugin@1.44.0(vite@8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(workerd@1.20260708.1)(wrangler@4.110.0)': + '@cloudflare/vite-plugin@1.44.0(@types/node@26.1.1)(vite@8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0))(workerd@1.20260708.1)(wrangler@4.110.0(@types/node@26.1.1))': dependencies: '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260708.1) - miniflare: 4.20260708.1 + miniflare: 4.20260708.1(@types/node@26.1.1) unenv: 2.0.0-rc.24 vite: 8.1.4(@types/node@26.1.1)(esbuild@0.28.1)(jiti@2.7.0)(stylus@0.64.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0) - wrangler: 4.110.0 + wrangler: 4.110.0(@types/node@26.1.1) ws: 8.21.0 transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate - workerd @@ -7084,21 +6951,11 @@ snapshots: '@img/colour@1.1.0': {} - '@img/sharp-darwin-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.2.4 - optional: true - '@img/sharp-darwin-arm64@0.35.3': optionalDependencies: '@img/sharp-libvips-darwin-arm64': 1.3.2 optional: true - '@img/sharp-darwin-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.2.4 - optional: true - '@img/sharp-darwin-x64@0.35.3': optionalDependencies: '@img/sharp-libvips-darwin-x64': 1.3.2 @@ -7109,151 +6966,76 @@ snapshots: '@img/sharp-wasm32': 0.35.3 optional: true - '@img/sharp-libvips-darwin-arm64@1.2.4': - optional: true - '@img/sharp-libvips-darwin-arm64@1.3.2': optional: true - '@img/sharp-libvips-darwin-x64@1.2.4': - optional: true - '@img/sharp-libvips-darwin-x64@1.3.2': optional: true - '@img/sharp-libvips-linux-arm64@1.2.4': - optional: true - '@img/sharp-libvips-linux-arm64@1.3.2': optional: true - '@img/sharp-libvips-linux-arm@1.2.4': - optional: true - '@img/sharp-libvips-linux-arm@1.3.2': optional: true - '@img/sharp-libvips-linux-ppc64@1.2.4': - optional: true - '@img/sharp-libvips-linux-ppc64@1.3.2': optional: true - '@img/sharp-libvips-linux-riscv64@1.2.4': - optional: true - '@img/sharp-libvips-linux-riscv64@1.3.2': optional: true - '@img/sharp-libvips-linux-s390x@1.2.4': - optional: true - '@img/sharp-libvips-linux-s390x@1.3.2': optional: true - '@img/sharp-libvips-linux-x64@1.2.4': - optional: true - '@img/sharp-libvips-linux-x64@1.3.2': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.3.2': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - optional: true - '@img/sharp-libvips-linuxmusl-x64@1.3.2': optional: true - '@img/sharp-linux-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.2.4 - optional: true - '@img/sharp-linux-arm64@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-arm64': 1.3.2 optional: true - '@img/sharp-linux-arm@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.2.4 - optional: true - '@img/sharp-linux-arm@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-arm': 1.3.2 optional: true - '@img/sharp-linux-ppc64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.2.4 - optional: true - '@img/sharp-linux-ppc64@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-ppc64': 1.3.2 optional: true - '@img/sharp-linux-riscv64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.2.4 - optional: true - '@img/sharp-linux-riscv64@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-riscv64': 1.3.2 optional: true - '@img/sharp-linux-s390x@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.2.4 - optional: true - '@img/sharp-linux-s390x@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-s390x': 1.3.2 optional: true - '@img/sharp-linux-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.2.4 - optional: true - '@img/sharp-linux-x64@0.35.3': optionalDependencies: '@img/sharp-libvips-linux-x64': 1.3.2 optional: true - '@img/sharp-linuxmusl-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - optional: true - '@img/sharp-linuxmusl-arm64@0.35.3': optionalDependencies: '@img/sharp-libvips-linuxmusl-arm64': 1.3.2 optional: true - '@img/sharp-linuxmusl-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - optional: true - '@img/sharp-linuxmusl-x64@0.35.3': optionalDependencies: '@img/sharp-libvips-linuxmusl-x64': 1.3.2 optional: true - '@img/sharp-wasm32@0.34.5': - dependencies: - '@emnapi/runtime': 1.11.2 - optional: true - '@img/sharp-wasm32@0.35.3': dependencies: '@emnapi/runtime': 1.11.2 @@ -7264,21 +7046,12 @@ snapshots: '@img/sharp-wasm32': 0.35.3 optional: true - '@img/sharp-win32-arm64@0.34.5': - optional: true - '@img/sharp-win32-arm64@0.35.3': optional: true - '@img/sharp-win32-ia32@0.34.5': - optional: true - '@img/sharp-win32-ia32@0.35.3': optional: true - '@img/sharp-win32-x64@0.34.5': - optional: true - '@img/sharp-win32-x64@0.35.3': optional: true @@ -10308,15 +10081,16 @@ snapshots: transitivePeerDependencies: - supports-color - miniflare@4.20260708.1: + miniflare@4.20260708.1(@types/node@26.1.1): dependencies: '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 + sharp: 0.35.3(@types/node@26.1.1) undici: 7.28.0 workerd: 1.20260708.1 ws: 8.21.0 youch: 4.1.0-beta.10 transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate @@ -11357,37 +11131,6 @@ snapshots: es-errors: 1.3.0 es-object-atoms: 1.1.2 - sharp@0.34.5: - dependencies: - '@img/colour': 1.1.0 - detect-libc: 2.1.2 - semver: 7.8.5 - optionalDependencies: - '@img/sharp-darwin-arm64': 0.34.5 - '@img/sharp-darwin-x64': 0.34.5 - '@img/sharp-libvips-darwin-arm64': 1.2.4 - '@img/sharp-libvips-darwin-x64': 1.2.4 - '@img/sharp-libvips-linux-arm': 1.2.4 - '@img/sharp-libvips-linux-arm64': 1.2.4 - '@img/sharp-libvips-linux-ppc64': 1.2.4 - '@img/sharp-libvips-linux-riscv64': 1.2.4 - '@img/sharp-libvips-linux-s390x': 1.2.4 - '@img/sharp-libvips-linux-x64': 1.2.4 - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - '@img/sharp-linux-arm': 0.34.5 - '@img/sharp-linux-arm64': 0.34.5 - '@img/sharp-linux-ppc64': 0.34.5 - '@img/sharp-linux-riscv64': 0.34.5 - '@img/sharp-linux-s390x': 0.34.5 - '@img/sharp-linux-x64': 0.34.5 - '@img/sharp-linuxmusl-arm64': 0.34.5 - '@img/sharp-linuxmusl-x64': 0.34.5 - '@img/sharp-wasm32': 0.34.5 - '@img/sharp-win32-arm64': 0.34.5 - '@img/sharp-win32-ia32': 0.34.5 - '@img/sharp-win32-x64': 0.34.5 - sharp@0.35.3(@types/node@26.1.1): dependencies: '@img/colour': 1.1.0 @@ -12154,19 +11897,20 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20260708.1 '@cloudflare/workerd-windows-64': 1.20260708.1 - wrangler@4.110.0: + wrangler@4.110.0(@types/node@26.1.1): dependencies: '@cloudflare/kv-asset-handler': 0.5.0 '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260708.1) blake3-wasm: 2.1.5 esbuild: 0.28.1 - miniflare: 4.20260708.1 + miniflare: 4.20260708.1(@types/node@26.1.1) path-to-regexp: 6.3.0 unenv: 2.0.0-rc.24 workerd: 1.20260708.1 optionalDependencies: fsevents: 2.3.3 transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate diff --git a/public/assets/images/badge-android.svg b/public/assets/images/badge-android.svg new file mode 100644 index 0000000..2000864 --- /dev/null +++ b/public/assets/images/badge-android.svg @@ -0,0 +1 @@ +AndroidAndroidAndroidAndroid \ No newline at end of file diff --git a/public/assets/images/badge-c-cpp.svg b/public/assets/images/badge-c-cpp.svg new file mode 100644 index 0000000..e40ea4b --- /dev/null +++ b/public/assets/images/badge-c-cpp.svg @@ -0,0 +1 @@ +C/C++C/C++C/C++C/C++ \ No newline at end of file diff --git a/public/assets/images/badge-c.svg b/public/assets/images/badge-c.svg new file mode 100644 index 0000000..2d09d78 --- /dev/null +++ b/public/assets/images/badge-c.svg @@ -0,0 +1 @@ +CCCC \ No newline at end of file diff --git a/public/assets/images/badge-html-css.svg b/public/assets/images/badge-html-css.svg new file mode 100644 index 0000000..543254f --- /dev/null +++ b/public/assets/images/badge-html-css.svg @@ -0,0 +1 @@ +HTML/CSSHTML/CSSHTML/CSSHTML/CSS \ No newline at end of file diff --git a/public/assets/images/badge-java.svg b/public/assets/images/badge-java.svg new file mode 100644 index 0000000..a808326 --- /dev/null +++ b/public/assets/images/badge-java.svg @@ -0,0 +1 @@ +JavaJavaJavaJava \ No newline at end of file diff --git a/public/assets/images/badge-kmp.svg b/public/assets/images/badge-kmp.svg new file mode 100644 index 0000000..9484e36 --- /dev/null +++ b/public/assets/images/badge-kmp.svg @@ -0,0 +1 @@ +KMPKMP diff --git a/public/assets/images/badge-kotlin.svg b/public/assets/images/badge-kotlin.svg new file mode 100644 index 0000000..44dda9e --- /dev/null +++ b/public/assets/images/badge-kotlin.svg @@ -0,0 +1 @@ +KotlinKotlinKotlinKotlin \ No newline at end of file diff --git a/public/assets/images/badge-python.svg b/public/assets/images/badge-python.svg new file mode 100644 index 0000000..9505f89 --- /dev/null +++ b/public/assets/images/badge-python.svg @@ -0,0 +1 @@ +PythonPythonPythonPython \ No newline at end of file diff --git a/public/assets/images/sponsor/alipay.jpg b/public/assets/images/sponsor/alipay.jpg new file mode 100644 index 0000000..6db49d0 Binary files /dev/null and b/public/assets/images/sponsor/alipay.jpg differ diff --git a/public/assets/images/sponsor/wechat.png b/public/assets/images/sponsor/wechat.png new file mode 100644 index 0000000..6a5644e Binary files /dev/null and b/public/assets/images/sponsor/wechat.png differ diff --git a/src/components/misc/SharePoster.svelte b/src/components/misc/SharePoster.svelte index 0b91288..638c0aa 100644 --- a/src/components/misc/SharePoster.svelte +++ b/src/components/misc/SharePoster.svelte @@ -423,18 +423,6 @@ async function generatePoster() { ); } - // Site Info (Left of QR) - const siteInfoX = qrX - 16 * scale; - ctx.textAlign = "right"; - - ctx.fillStyle = "#9ca3af"; - ctx.font = `${12 * scale}px 'Roboto', sans-serif`; - ctx.fillText(i18n(I18nKey.scanToRead), siteInfoX, textCenterY - 20 * scale); - - ctx.fillStyle = "#1f2937"; - ctx.font = `700 ${20 * scale}px 'Roboto', sans-serif`; - ctx.fillText(siteTitle, siteInfoX, textCenterY + 4 * scale); - // Finalize posterImage = canvas.toDataURL("image/png"); generating = false; diff --git a/src/config/backgroundWallpaper.ts b/src/config/backgroundWallpaper.ts index 2c5e0e3..f1cc631 100644 --- a/src/config/backgroundWallpaper.ts +++ b/src/config/backgroundWallpaper.ts @@ -76,8 +76,7 @@ export const backgroundWallpaper: BackgroundWallpaperConfig = { titleSize: "3.8rem", // 主页横幅副标题 subtitle: [ - "Vivo de mis sueños, porque la realidad es muy corta.", - "No por mucho madrugar amanece más temprano." + "爱能克服远距离 多远都要在一起" ], // 主页横幅副标题字体大小 subtitleSize: "1.5rem", diff --git a/src/config/sidebarConfig.ts b/src/config/sidebarConfig.ts index 040f25d..be0546f 100644 --- a/src/config/sidebarConfig.ts +++ b/src/config/sidebarConfig.ts @@ -241,7 +241,7 @@ export const sidebarLayoutConfig: SidebarLayoutConfig = { // 组件类型:音乐播放器 type: "music", // 是否启用该组件 - enable: true, + enable: false, // 是否在文章详情页显示 showOnPostPage: true, }, diff --git a/src/config/siteConfig.ts b/src/config/siteConfig.ts index bbf7125..a523c1f 100644 --- a/src/config/siteConfig.ts +++ b/src/config/siteConfig.ts @@ -96,7 +96,7 @@ export const siteConfig: SiteConfig = { // 页面开关配置 pages: { friends: true, - sponsor: false, + sponsor: true, guestbook: false, bangumi: false, gallery: false, diff --git a/src/config/sponsorConfig.ts b/src/config/sponsorConfig.ts index 022084c..6bee27d 100644 --- a/src/config/sponsorConfig.ts +++ b/src/config/sponsorConfig.ts @@ -26,7 +26,7 @@ export const sponsorConfig: SponsorConfig = { name: "支付宝", icon: "fa7-brands:alipay", // 收款码图片路径(需要放在 public 目录下) - qrCode: "/assets/images/sponsor/alipay.png", + qrCode: "/assets/images/sponsor/alipay.jpg", link: "", description: "使用 支付宝 扫码打赏", enabled: true, @@ -43,7 +43,7 @@ export const sponsorConfig: SponsorConfig = { name: "ko-fi", icon: "simple-icons:kofi", qrCode: "", - link: "https://ko-fi.com/cuteleaf", + link: "https://ko-fi.com/blackcyan", description: "Buy a Coffee for Firefly", enabled: true, }, @@ -60,20 +60,20 @@ export const sponsorConfig: SponsorConfig = { // 打赏者列表(可选) sponsors: [ // 示例:已实名打赏者 - { - name: "夏叶", - avatar: - "https://weavatar.com/avatar/d252655d40d6874417a720bad0a6c5f77f8f6a1fd2f882f8f338402dc37e4190?s=640", - amount: "¥50", - date: "2025-10-01", - }, + // { + // name: "夏叶", + // avatar: + // "https://weavatar.com/avatar/d252655d40d6874417a720bad0a6c5f77f8f6a1fd2f882f8f338402dc37e4190?s=640", + // amount: "¥50", + // date: "2025-10-01", + // }, // 示例:匿名打赏者 - { - name: "匿名用户", - // avatar: "", - amount: "¥20", - date: "2025-10-01", - }, + // { + // name: "匿名用户", + // // avatar: "", + // amount: "¥20", + // date: "2025-10-01", + // }, ], }; diff --git a/src/content/posts/march-summary.md b/src/content/posts/2025-march-summary.md similarity index 100% rename from src/content/posts/march-summary.md rename to src/content/posts/2025-march-summary.md diff --git a/src/content/posts/code-highlight-issue.md b/src/content/posts/code-highlight-issue.md index 1a9d183..5b20833 100644 --- a/src/content/posts/code-highlight-issue.md +++ b/src/content/posts/code-highlight-issue.md @@ -1,9 +1,9 @@ --- -title: 关于 5 月 14 日在写博客时发现的代码高亮显示问题 +title: Prism.js C++ 代码高亮不生效的解决方法 published: 2025-05-15 -tags: ["博客", "代码高亮"] +tags: ["博客", "代码高亮", "Prism.js", "前端", "踩坑"] category: 技术 -description: 关于 5 月 14 日在写博客时发现的代码高亮显示问题 +description: 使用 Prism.js 实现 C++ 代码高亮时发现需要先引入 prism-c.min.js 才能生效,记录一次博客开发中的踩坑经历 --- 昨天在写博客的时候,调用了 Prism 的 cpp 代码高亮显示: diff --git a/src/content/posts/cpp-io-operator.md b/src/content/posts/cpp-io-operator.md index 3de020a..d69cf97 100644 --- a/src/content/posts/cpp-io-operator.md +++ b/src/content/posts/cpp-io-operator.md @@ -1,9 +1,9 @@ --- -title: C++ 输入输出流的 operator +title: C++ 输入输出流运算符重载为什么用友元函数 published: 2025-05-14 -tags: ["C++", "IO流"] +tags: ["C++", "运算符重载", "友元函数", "IO流", "C++基础"] category: 技术 -description: C++ 输入输出流的 operator +description: 深入理解 C++ 中 std::ostream 和 std::istream 的 << >> 运算符重载必须使用友元函数而非成员函数的原因,涉及 this 指针与左操作数绑定机制。 --- 今天是朝鲜主体历114年5月14日 (喜) diff --git a/src/content/posts/ensure-ntfs3-on-fedora.md b/src/content/posts/ensure-ntfs3-on-fedora.md index efe9fa1..a59c6c5 100644 --- a/src/content/posts/ensure-ntfs3-on-fedora.md +++ b/src/content/posts/ensure-ntfs3-on-fedora.md @@ -1,9 +1,12 @@ --- -title: 在 Fedora 上启用 ntfs3 文件系统驱动 +title: Fedora 启用 ntfs3 内核驱动提升 NTFS 读写性能 published: 2026-07-24 -tags: ["Linux", "文件系统"] +updated: 2026-09-03 +pinned: true +tags: ["Linux", "文件系统", "NTFS", "ntfs3", "Fedora", "内核模块", "NVMe"] category: 技术 -description: 让 NTFS 在 Fedora 上的读写速度更上一层楼 +description: 在 Fedora 上启用 Linux 内核原生 ntfs3 驱动以替代 ntfs-3g,大幅提升 NTFS 移动硬盘读写速度,包含内核模块检查、mount 配置及双系统注意事项。 +image: "./ensure-ntfs3-on-fedora/paragon-ntfs3.avif" --- 前几天突然想起来自己还有一个 256G 的 NVMe SSD,是大一的时候买来当移动硬盘用的,可惜之前两次由于对这方面知识的欠缺,购买的硬盘盒都比较差劲,硬盘就一直搁置着。现如今,我还是认为自己需要一个移动硬盘,于是又新购入了一个硬盘盒。组装好后,我尝试在 Fedora 上测试它的读写速度,发现原本理论上是 10 Gbps 的传输速度,在使用 `dd` 测试顺序写入时,平均速度只有约 142 MB/s!我查阅了大量资料,发现貌似是文件系统的原因,我的硬盘使用的文件系统是 NTFS,而我并不想改用别的文件系统,所以只能找找看有没有两全其美的办法。 @@ -18,9 +21,8 @@ description: 让 NTFS 在 Fedora 上的读写速度更上一层楼 `ntfs3` 是 Linux 内核中的一个原生 ntfs 读写文件系统驱动,由 [Paragon Software Group](https://www.paragon-software.com/about/) 开发并贡献给 Linux 内核,在 Linux v5.15-rc1 的 commit [f746406](https://github.com/torvalds/linux/commit/f7464060f7ab9a2424428008f0ee9f1e267e410f) 中正式合并。它的目标是替代早期 Linux 内核中功能有限的只读 ntfs 驱动以及基于 FUSE 的 ntfs-3g。 -## 注意事项 - -如果你的电脑是 Windows 与 Linux 双系统,那么请[关闭 Windows 的快速启动](https://learn.microsoft.com/zh-cn/troubleshoot/windows-client/setup-upgrade-and-drivers/wake-on-lan-feature?utm_source=chatgpt.com#more-information)。Windows 的快速启动本质上是休眠,即将完整的内存快照写入到磁盘,在下次启动 Windows 时再将其还原到内存,从而达到快速启动的效果。使用 ntfs3 挂载 Windows 系统盘并写入数据时,有可能会破坏这部分数据,进而造成 Windows 系统在启动时出现不同程度的异常。 +> [!WARNING] +> 如果你的电脑是 Windows 与 Linux 双系统,那么请[关闭 Windows 的快速启动](https://learn.microsoft.com/zh-cn/troubleshoot/windows-client/setup-upgrade-and-drivers/wake-on-lan-feature?utm_source=chatgpt.com#more-information)。Windows 的快速启动本质上是休眠,即将完整的内存快照写入到磁盘,在下次启动 Windows 时再将其还原到内存,从而达到快速启动的效果。使用 ntfs3 挂载 Windows 系统盘并写入数据时,有可能会破坏这部分数据,进而造成 Windows 系统在启动时出现不同程度的异常。 ## 开始使用 @@ -38,7 +40,8 @@ grep ntfs3 /proc/filesystems sudo modprobe ntfs3 ``` -> 注意:Linux 内核从 5.15 开始正式合并 ntfs3 驱动,如果不确定你的内核版本,可使用 `uname -r` 来确认。 +> [!NOTE] +> Linux 内核从 5.15 开始正式合并 ntfs3 驱动,如果不确定你的内核版本,可使用 `uname -r` 来确认。 ### 挂载 diff --git a/src/content/posts/ensure-ntfs3-on-fedora/paragon-ntfs3.avif b/src/content/posts/ensure-ntfs3-on-fedora/paragon-ntfs3.avif new file mode 100644 index 0000000..ec5ad2c Binary files /dev/null and b/src/content/posts/ensure-ntfs3-on-fedora/paragon-ntfs3.avif differ diff --git a/src/content/posts/gauss-jordan-kotlin.md b/src/content/posts/gauss-jordan-kotlin.md index fc9feaf..19a1586 100644 --- a/src/content/posts/gauss-jordan-kotlin.md +++ b/src/content/posts/gauss-jordan-kotlin.md @@ -1,9 +1,9 @@ --- -title: 高斯-约旦消元法的 Kotlin 实现 +title: 高斯-约旦消元法的 Kotlin 实现:矩阵行最简形式与秩的计算 published: 2025-06-24 -tags: ["Kotlin", "算法", "线性代数"] +tags: ["Kotlin", "算法", "线性代数", "矩阵", "高斯消元"] category: 技术 -description: 高斯-约旦消元法的 Kotlin 实现 +description: 使用 Kotlin 实现高斯-约旦消元法(Gauss-Jordan Elimination),将矩阵化为行最简阶梯形矩阵(RREF),并计算矩阵的秩,附完整代码。 --- 最让我头疼的几门课已经考完试了,讲讲前几天复习线性代数的时候学到的东西 diff --git a/src/content/posts/kotlin-hello-world.md b/src/content/posts/kotlin-hello-world.md index 9f6a50a..0ee8211 100644 --- a/src/content/posts/kotlin-hello-world.md +++ b/src/content/posts/kotlin-hello-world.md @@ -1,9 +1,9 @@ --- -title: Kotlin 输出 HelloWorld +title: Kotlin 入门:Hello World 与基础语法 published: 2025-01-18 -tags: ["Kotlin", "入门"] +tags: ["Kotlin", "入门", "JVM", "Kotlin基础"] category: 技术 -description: Kotlin 输出 HelloWorld +description: Kotlin 语言入门第一篇,介绍如何用 Kotlin 输出 Hello World,涵盖 main 函数、println、集合遍历等基础语法,适合零基础新手。 --- 以下是Kotlin输出"Hello, world!"的简单代码: diff --git a/src/content/posts/kruskal-prim.md b/src/content/posts/kruskal-prim.md index d82283a..60f60f7 100644 --- a/src/content/posts/kruskal-prim.md +++ b/src/content/posts/kruskal-prim.md @@ -1,9 +1,9 @@ --- -title: Kruskal 算法与 Prim 算法 +title: Kruskal 与 Prim 最小生成树算法详解(Kotlin 实现) published: 2025-06-25 -tags: ["算法", "图论", "Kruskal", "Prim", "Kotlin"] +tags: ["算法", "图论", "最小生成树", "Kruskal", "Prim", "Kotlin", "并查集"] category: 技术 -description: Kruskal 算法与 Prim 算法 +description: 图论经典算法 Kruskal 和 Prim 求解最小生成树(MST)的原理与 Kotlin 实现,包含贪心策略、并查集、邻接矩阵等核心知识点。 --- Kruskal 算法与 Prim 算法是图论中经典的算法,用于求解最小生成树问题。 diff --git a/src/content/posts/rpi-cross-compile-opencv.md b/src/content/posts/rpi-cross-compile-opencv.md index 702a036..bc0dc20 100644 --- a/src/content/posts/rpi-cross-compile-opencv.md +++ b/src/content/posts/rpi-cross-compile-opencv.md @@ -1,9 +1,9 @@ --- -title: 在 Linux 上配置树莓派 4B OpenCV 交叉编译 +title: 树莓派 4B OpenCV 交叉编译完整指南(Linux + Docker) published: 2026-07-18 -tags: ["Linux", "交叉编译", "C++", "树莓派", "OpenCV", "Docker"] +tags: ["Linux", "交叉编译", "C++", "树莓派", "OpenCV", "Docker", "CMake", "ARM"] category: 技术 -description: 在 Linux 上配置树莓派 4B OpenCV 交叉编译,包含非 Debian 系发行版的容器化方案 +description: 在 x86 Linux 上为树莓派 4B 配置 OpenCV C++ 交叉编译环境的完整教程,涵盖根文件系统同步、交叉工具链配置、Docker 容器化方案及 CMake 集成。 --- 这两天大家都在火热地准备电赛,我也不例外。去年我使用的摄像头是 [MaixCam Pro](https://wiki.sipeed.com/hardware/zh/maixcam/maixcam_pro.html),编程语言我选择了 Python,使用了 [MaixPy](https://github.com/sipeed/MaixPy) 和 [Python OpenCV](https://github.com/opencv/opencv-python) 库。苦于性能瓶颈,今年我打算用 C++ 重写图像处理逻辑,目标平台是[树莓派 4B](https://www.raspberrypi.com/products/raspberry-pi-4-model-b/)。 diff --git a/src/content/posts/sipeed-mic-array.md b/src/content/posts/sipeed-mic-array.md index d40c1f4..39b5cbe 100644 --- a/src/content/posts/sipeed-mic-array.md +++ b/src/content/posts/sipeed-mic-array.md @@ -1,9 +1,9 @@ --- -title: Sipeed 麦克风阵列获取声源角度 +title: Sipeed 麦克风阵列声源定位:MicroPython 获取声源角度 published: 2025-07-06 -tags: ["Sipeed", "麦克风阵列", "声源定位"] +tags: ["Sipeed", "麦克风阵列", "声源定位", "MicroPython", "MaixPy", "嵌入式", "DOA"] category: 技术 -description: Sipeed 麦克风阵列获取声源角度 +description: 使用 Sipeed MicArray 麦克风阵列模块进行声源定位(DOA),通过 MicroPython / MaixPy 获取声源方向角度并驱动 RGB LED 显示,附官方示例代码。 --- 官方文档:[MicArray 麦克风阵列 - Sipeed Wiki](https://wiki.sipeed.com/hardware/zh/modules/micarray.html) diff --git a/src/content/posts/yi-nian-le.md b/src/content/posts/yi-nian-le.md deleted file mode 100644 index 20ccd18..0000000 --- a/src/content/posts/yi-nian-le.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: 一年了 -published: 2026-01-10 -tags: ["博客", "周年"] -category: 杂谈 -description: 大学生活过得真快啊 ---- - -时间过得真快啊,网站不知不觉已经要一年了 - -前不久申请了宝塔砺行计划,最近给老师发邮件的时候才发现申请通过了,于是我马上为我的云服务器部署了宝塔面板(嘻嘻) - -宝塔面板确实十分方便,他们推出的砺行计划对学生用户也十分有帮助,如果大家有条件的话,推荐大家都去申请一下 - -在 2026 年,我决定先修一下算法,然后尽量掌握 Jetpack Compose 安卓开发。看见网上很多人说学这个没用,国内没啥公司用这个写安卓,我想说的是,技术从来不应该通过有没有被广泛使用来衡量其必要性。不管是什么技术栈,其在传播时肯定不是第一天无人问津而第二天就做到家喻户晓的。有许多人愿意学习这门技术并且传播,就说明这门技术有前景有希望,并不会被一两盆冷水淹没。总之就一句话:程序员要多学、多练,而不是整天卖弄自己的才华,嘴里蹦出几个高级的专业词汇来唬人,然后对某门技术栈评头论足,去争个高低贵贱。 diff --git a/src/content/spec/about.md b/src/content/spec/about.md index f236114..941843a 100644 --- a/src/content/spec/about.md +++ b/src/content/spec/about.md @@ -5,8 +5,8 @@ - **昵称:** 墨青 / BlackCyan / Cyanus Nigrius - **专业:** 软件工程 - **语言:** 中文 / English -- **编程语言:** Java, Kotlin, Python, HTML/CSS, C++ -- **技术栈:** Android 开发,KMP +- **编程语言:** +- **技术栈:** - **兴趣爱好:** 编程, 游戏, 音乐, 美食 --- @@ -21,16 +21,15 @@ --- -## 标签 +## 印象标签 - 二次元 - Furry - Minecraft -- 火影忍者 - 时光代理人 - 开源 -- 反对内卷 -- 反对 AI 绘画、音乐 +- 反内卷 +- 反 AI (画作、乐曲) --- @@ -40,7 +39,7 @@ 我喜欢捣鼓各种编程语言,容易写码上瘾,一写就是几小时甚至一天。最喜欢的语言是能够在 JVM 上运行的语言,如 Java 与 Kotlin。 -我不喜欢 AI 绘画与 AI 音乐,请不要随意地将 AI 创作的艺术作品分享给我鉴赏。 +我不喜欢 AI 画作与 AI 乐曲,请不要随意地将 AI ~~创作~~ 融合的尸块作品分享给我鉴赏。 我不喜欢内卷,也不喜欢被人说内卷。我学习的目的并不是为了将任何人比下去,而是拓展自己的知识储备,让自己能够更好地面对这个世界;又或者仅仅是为了应付考试。 diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ff81f92..9211722 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -39,9 +39,12 @@ interface Props { lang?: string; setOGTypeArticle?: boolean; postSlug?: string; + articlePublishedTime?: string; + articleModifiedTime?: string; + articleTags?: string[]; } -let { title, description, lang, setOGTypeArticle, postSlug } = Astro.props; +let { title, description, lang, setOGTypeArticle, postSlug, articlePublishedTime, articleModifiedTime, articleTags } = Astro.props; // apply a class to the body element to decide the height of the banner, only used for initial page load // Swup can update the body for each page visit, but it's after the page transition, causing a delay for banner height change @@ -153,9 +156,20 @@ const siteLang = lang.replace("_", "-"); name="twitter:description" content={description || siteConfig.description || pageTitle} /> + {ogImageUrl && } + {setOGTypeArticle && articlePublishedTime && ( + + )} + {setOGTypeArticle && articleModifiedTime && ( + + )} + {setOGTypeArticle && articleTags && articleTags.map((tag) => ( + + ))} + { favicons.map((favicon) => ( diff --git a/src/pages/sponsor.astro b/src/pages/sponsor.astro new file mode 100644 index 0000000..75cec98 --- /dev/null +++ b/src/pages/sponsor.astro @@ -0,0 +1,215 @@ +--- +import Comment from "@components/comment/index.astro"; +import { Icon } from "astro-icon/components"; +import { commentConfig, siteConfig, sponsorConfig } from "@/config"; +import I18nKey from "@/i18n/i18nKey"; +import { i18n } from "@/i18n/translation"; +import MainGridLayout from "@/layouts/MainGridLayout.astro"; +import { getLqipProps } from "@/utils/lqip-utils"; +import { url } from "@/utils/url-utils"; + +// 检查页面是否启用 +if (!siteConfig.pages.sponsor) { + return Astro.redirect("/404/"); +} + +// 检查评论系统是否启用 +const isCommentEnabled = + commentConfig?.type && + commentConfig.type !== "none" && + sponsorConfig.showComment !== false; + +const title = sponsorConfig.title || i18n(I18nKey.sponsorTitle); +const description = + sponsorConfig.description || i18n(I18nKey.sponsorDescription); +const enabledMethods = sponsorConfig.methods.filter((method) => method.enabled); +const sponsors = sponsorConfig.sponsors || []; +const showSponsorsList = sponsorConfig.showSponsorsList !== false; + +// LQIP 渐变占位 +function getQrLqipProps(qrCode: string) { + return getLqipProps(qrCode, undefined, true); +} +--- + + + + + + + + + + + + {title} + + + {description && ( + + {description} + + )} + {sponsorConfig.usage && ( + + + + + + {sponsorConfig.usage} + + + + )} + + + + + + {enabledMethods.map((method) => ( + + + + {method.icon && ( + + )} + + {method.name} + + + + + {method.description && ( + + {method.description} + + )} + + + {method.qrCode && ( + + + + + )} + + {method.link && ( + + {i18n(I18nKey.sponsorGoTo)} + + + )} + + ))} + + + + + + + {showSponsorsList && ( + + + + + + + + + {i18n(I18nKey.sponsorList)} + + + {sponsors.length > 0 && ( + + {sponsors.length} + + )} + + {sponsors.length > 0 ? ( + + {sponsors.map((sponsor) => ( + + {/* 头像占位 */} + + {sponsor.avatar ? ( + + ) : null} + + + + {sponsor.name.charAt(0)} + + + {/* 信息 */} + + + + {sponsor.name} + + {sponsor.amount && ( + + {sponsor.amount} + + )} + + {sponsor.date && ( + + {new Date(sponsor.date).toLocaleDateString()} + + )} + + + ))} + + ) : ( + + {i18n(I18nKey.sponsorEmpty)} + + )} + + + )} + + {isCommentEnabled && ( + + + + )} + + + + +
+ {description} +
+ + {sponsorConfig.usage} +
+ {method.description} +
{i18n(I18nKey.sponsorEmpty)}