From 6c084793eccffedf8134c6eb998293a2e73d230f Mon Sep 17 00:00:00 2001 From: toom1996 Date: Tue, 5 Aug 2025 10:32:00 +0800 Subject: [PATCH] update --- src/pages/index.astro | 107 ++++++++++++------------------------------ 1 file changed, 29 insertions(+), 78 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index c9319f4..e8b6ab5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,7 +4,7 @@ import { getConfig } from "../../utils/config"; import { newsIndex } from "../../utils/rpc"; import { Image } from "astro:assets"; const config = getConfig(Astro); -const { code, data, guess } = await newsIndex(config.id, 20, 1); +const { code, data, guess } = await newsIndex(config.id, 3, 1); console.log(data) --- @@ -215,89 +215,40 @@ console.log(data)
-
-

最新资讯

-

- 霍尔果斯飞驰广告有限公司专注于提供从基础到进阶的SEO优化策略、广告投放方案、内容运营实战技巧以及网站转化率提升解决方案。同时,我们也持续分享最新的科技动态、财经洞察、软件评测等多类型优质资讯,助力用户在数字时代高效获取价值信息。 -

+
+

最新资讯

-
-
-
-
- { - data?.slice(0, 2).map((e, index) => ( - -
- {e.title} -
-
{e.title}
-
- )) - } -
- { - data?.slice(2, 3).map((e, index) => ( -
- - {e.title} -
{e.title}
-
+ { + data.map((item) => { + return ( +
+ -
- -
-
- { - data?.slice(18, 20).map((e, index) => ( - - )) - } - { - guess?.slice(0, 9).map((e, index) => ( - - )) - } -
-
-
-
+ ); + }) + }