From 85542d9c46cac7b72599f4304d0d6ea0521f794f Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Fri, 22 Nov 2024 15:17:14 +0800 Subject: [PATCH] chore: change the order of the feature posts. --- .vscode/settings.json | 1 + package-lock.json | 34 ++++++++++----------- package.json | 6 ++-- src/components/page/post/FeaturePosts.astro | 2 +- 4 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index cb41b57..df74d35 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -85,6 +85,7 @@ "luoli", "luxon", "mboker", + "metas", "microflash", "minagi", "miui", diff --git a/package-lock.json b/package-lock.json index 4c52837..1afe505 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,12 +12,12 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/rss": "^4.0.9", "@zeabur/astro-adapter": "^1.0.6", - "astro": "^4.16.13", + "astro": "^4.16.14", "drizzle-orm": "^0.36.3", "fuse.js": "^7.0.0", "lodash": "^4.17.21", "luxon": "^3.5.0", - "marked": "^15.0.1", + "marked": "^15.0.2", "pg": "^8.13.1", "qrcode-svg": "^1.1.0", "ultrahtml": "^1.5.3" @@ -2670,9 +2670,9 @@ } }, "node_modules/@vscode/emmet-helper": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.10.0.tgz", - "integrity": "sha512-UHw1EQRgLbSYkyB73/7wR/IzV6zTBnbzEHuuU4Z6b95HKf2lmeTdGwBIwspWBSRrnIA1TI2x2tetBym6ErA7Gw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.11.0.tgz", + "integrity": "sha512-QLxjQR3imPZPQltfbWRnHU6JecWTF1QSWhx3GAKQpslx7y3Dp6sIIXhKjiUJ/BR9FX8PVthjr9PD6pNwOJfAzw==", "dev": true, "license": "MIT", "dependencies": { @@ -2889,9 +2889,9 @@ } }, "node_modules/astro": { - "version": "4.16.13", - "resolved": "https://registry.npmjs.org/astro/-/astro-4.16.13.tgz", - "integrity": "sha512-Mtd76+BC0zLWqoXpf9xc731AhdH4MNh5JFHYdLRvSH0Nqn48hA64dPGh/cWsJvh/DZFmC0NTZusM1Qq2gyNaVg==", + "version": "4.16.14", + "resolved": "https://registry.npmjs.org/astro/-/astro-4.16.14.tgz", + "integrity": "sha512-2IuLkIp4idyspugq+F52rHZyNqHHi2AdQzuKp3SGytg/YAm50dNeWhP/7l+enjgWZLloLq5xsH5gVQpoDFoyFg==", "license": "MIT", "dependencies": { "@astrojs/compiler": "^2.10.3", @@ -3263,9 +3263,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001680", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", - "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", + "version": "1.0.30001683", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001683.tgz", + "integrity": "sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==", "funding": [ { "type": "opencollective", @@ -3896,9 +3896,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.63", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz", - "integrity": "sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==", + "version": "1.5.64", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.64.tgz", + "integrity": "sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==", "license": "ISC" }, "node_modules/emmet": { @@ -5362,9 +5362,9 @@ } }, "node_modules/marked": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.1.tgz", - "integrity": "sha512-VnnE19XO2Vb2oZeH8quAepfrb6Aaz4OoY8yZQACfuy/5KVJ0GxYC0Qxzz/iuc+g5UF7H0HJ+QROfvH26XeBdDA==", + "version": "15.0.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.2.tgz", + "integrity": "sha512-85RUkoYKIVB21PbMKrnD6aCl9ws+XKEyhJNMbLn206NyD3jbBo7Ec7Wi4Jrsn4dV1a2ng7K/jfkmIN0DNoS41w==", "license": "MIT", "bin": { "marked": "bin/marked.js" diff --git a/package.json b/package.json index 69dfa90..4985be2 100644 --- a/package.json +++ b/package.json @@ -45,12 +45,12 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/rss": "^4.0.9", "@zeabur/astro-adapter": "^1.0.6", - "astro": "^4.16.13", + "astro": "^4.16.14", "drizzle-orm": "^0.36.3", "fuse.js": "^7.0.0", "lodash": "^4.17.21", "luxon": "^3.5.0", - "marked": "^15.0.1", + "marked": "^15.0.2", "pg": "^8.13.1", "qrcode-svg": "^1.1.0", "ultrahtml": "^1.5.3" @@ -81,7 +81,7 @@ "typescript": "^5.6.3", "unist-util-select": "^5.1.0" }, - "packageManager": "npm@10.9.0", + "packageManager": "npm@10.9.1", "engines": { "node": "22.11.0" } diff --git a/src/components/page/post/FeaturePosts.astro b/src/components/page/post/FeaturePosts.astro index 28ffbbf..0bb79f1 100644 --- a/src/components/page/post/FeaturePosts.astro +++ b/src/components/page/post/FeaturePosts.astro @@ -20,7 +20,7 @@ const historicalPosts = (): Post[] => { const now = DateTime.now().setZone(options.settings.timeZone); const radical = now.month + now.day; - return [posts[offset + radical - 1], posts[offset + radical + 43 - 1], posts[offset + radical + 43 * 2 - 1]]; + return [posts[offset + radical + 43 * 2 - 1], posts[offset + radical + 43 - 1], posts[offset + radical - 1]]; }; const featurePosts = options.settings.post.feature ?? [];