From 69b66775f8eb95f0cfea92c3cc8e9292a666ae1c Mon Sep 17 00:00:00 2001 From: toom1996 Date: Fri, 18 Jul 2025 15:20:55 +0800 Subject: [PATCH] update --- src/assets/css/bootstrap.css | 1 - src/components/Breadcrumb.astro | 4 +- src/components/Pagination.astro | 2 +- src/layouts/Layout.astro | 4 +- src/pages/news.astro | 45 +- src/pages/news/[...slug].astro | 676 +++++++++++++++------------- src/pages/news/tech/[...page].astro | 7 + utils/rpc.ts | 4 + 8 files changed, 422 insertions(+), 321 deletions(-) create mode 100644 src/pages/news/tech/[...page].astro diff --git a/src/assets/css/bootstrap.css b/src/assets/css/bootstrap.css index 4a1ecde..ee48a38 100644 --- a/src/assets/css/bootstrap.css +++ b/src/assets/css/bootstrap.css @@ -294,7 +294,6 @@ a { a:hover, a:focus { color: #E74C3C; - text-decoration: underline; } a:focus { outline: thin dotted; diff --git a/src/components/Breadcrumb.astro b/src/components/Breadcrumb.astro index acd2728..33b116c 100644 --- a/src/components/Breadcrumb.astro +++ b/src/components/Breadcrumb.astro @@ -6,7 +6,7 @@ const {data} = Astro.props; { data.map((item: { title: string; link: string }) => { return ( - / + > {item.title} ) }) @@ -17,6 +17,8 @@ const {data} = Astro.props; .breadcrumb { /* margin-left: 1rem; */ /* margin-bottom: 1rem; */ + padding: 1rem; + border-bottom: 1px solid #ebebeb; font-size: 1rem; font-weight: bold; } diff --git a/src/components/Pagination.astro b/src/components/Pagination.astro index df59ad1..731e097 100644 --- a/src/components/Pagination.astro +++ b/src/components/Pagination.astro @@ -26,7 +26,7 @@ if (totalPages <= 7) { showPages.push(1, '...', currentPage - 1, currentPage, currentPage + 1, '...', totalPages); } } - +console.log(showPages) ---