chore: change the order of the feature posts.

This commit is contained in:
Yufan Sheng 2024-11-22 15:17:14 +08:00
parent 71a09daa2d
commit 85542d9c46
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
4 changed files with 22 additions and 21 deletions

View File

@ -85,6 +85,7 @@
"luoli", "luoli",
"luxon", "luxon",
"mboker", "mboker",
"metas",
"microflash", "microflash",
"minagi", "minagi",
"miui", "miui",

34
package-lock.json generated
View File

@ -12,12 +12,12 @@
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9", "@astrojs/rss": "^4.0.9",
"@zeabur/astro-adapter": "^1.0.6", "@zeabur/astro-adapter": "^1.0.6",
"astro": "^4.16.13", "astro": "^4.16.14",
"drizzle-orm": "^0.36.3", "drizzle-orm": "^0.36.3",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"marked": "^15.0.1", "marked": "^15.0.2",
"pg": "^8.13.1", "pg": "^8.13.1",
"qrcode-svg": "^1.1.0", "qrcode-svg": "^1.1.0",
"ultrahtml": "^1.5.3" "ultrahtml": "^1.5.3"
@ -2670,9 +2670,9 @@
} }
}, },
"node_modules/@vscode/emmet-helper": { "node_modules/@vscode/emmet-helper": {
"version": "2.10.0", "version": "2.11.0",
"resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.10.0.tgz", "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.11.0.tgz",
"integrity": "sha512-UHw1EQRgLbSYkyB73/7wR/IzV6zTBnbzEHuuU4Z6b95HKf2lmeTdGwBIwspWBSRrnIA1TI2x2tetBym6ErA7Gw==", "integrity": "sha512-QLxjQR3imPZPQltfbWRnHU6JecWTF1QSWhx3GAKQpslx7y3Dp6sIIXhKjiUJ/BR9FX8PVthjr9PD6pNwOJfAzw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -2889,9 +2889,9 @@
} }
}, },
"node_modules/astro": { "node_modules/astro": {
"version": "4.16.13", "version": "4.16.14",
"resolved": "https://registry.npmjs.org/astro/-/astro-4.16.13.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-4.16.14.tgz",
"integrity": "sha512-Mtd76+BC0zLWqoXpf9xc731AhdH4MNh5JFHYdLRvSH0Nqn48hA64dPGh/cWsJvh/DZFmC0NTZusM1Qq2gyNaVg==", "integrity": "sha512-2IuLkIp4idyspugq+F52rHZyNqHHi2AdQzuKp3SGytg/YAm50dNeWhP/7l+enjgWZLloLq5xsH5gVQpoDFoyFg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@astrojs/compiler": "^2.10.3", "@astrojs/compiler": "^2.10.3",
@ -3263,9 +3263,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001680", "version": "1.0.30001683",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001683.tgz",
"integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", "integrity": "sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@ -3896,9 +3896,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.63", "version": "1.5.64",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.64.tgz",
"integrity": "sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==", "integrity": "sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/emmet": { "node_modules/emmet": {
@ -5362,9 +5362,9 @@
} }
}, },
"node_modules/marked": { "node_modules/marked": {
"version": "15.0.1", "version": "15.0.2",
"resolved": "https://registry.npmjs.org/marked/-/marked-15.0.1.tgz", "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.2.tgz",
"integrity": "sha512-VnnE19XO2Vb2oZeH8quAepfrb6Aaz4OoY8yZQACfuy/5KVJ0GxYC0Qxzz/iuc+g5UF7H0HJ+QROfvH26XeBdDA==", "integrity": "sha512-85RUkoYKIVB21PbMKrnD6aCl9ws+XKEyhJNMbLn206NyD3jbBo7Ec7Wi4Jrsn4dV1a2ng7K/jfkmIN0DNoS41w==",
"license": "MIT", "license": "MIT",
"bin": { "bin": {
"marked": "bin/marked.js" "marked": "bin/marked.js"

View File

@ -45,12 +45,12 @@
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9", "@astrojs/rss": "^4.0.9",
"@zeabur/astro-adapter": "^1.0.6", "@zeabur/astro-adapter": "^1.0.6",
"astro": "^4.16.13", "astro": "^4.16.14",
"drizzle-orm": "^0.36.3", "drizzle-orm": "^0.36.3",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"marked": "^15.0.1", "marked": "^15.0.2",
"pg": "^8.13.1", "pg": "^8.13.1",
"qrcode-svg": "^1.1.0", "qrcode-svg": "^1.1.0",
"ultrahtml": "^1.5.3" "ultrahtml": "^1.5.3"
@ -81,7 +81,7 @@
"typescript": "^5.6.3", "typescript": "^5.6.3",
"unist-util-select": "^5.1.0" "unist-util-select": "^5.1.0"
}, },
"packageManager": "npm@10.9.0", "packageManager": "npm@10.9.1",
"engines": { "engines": {
"node": "22.11.0" "node": "22.11.0"
} }

View File

@ -20,7 +20,7 @@ const historicalPosts = (): Post[] => {
const now = DateTime.now().setZone(options.settings.timeZone); const now = DateTime.now().setZone(options.settings.timeZone);
const radical = now.month + now.day; 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 ?? []; const featurePosts = options.settings.post.feature ?? [];