From 13e7e4026d634bb0cca78baed5827fe1952a23c7 Mon Sep 17 00:00:00 2001 From: yarnom Date: Mon, 1 Jun 2026 17:25:39 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E8=B0=83=E6=95=B4=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/site/src/components/SiteNav.astro | 1 - .../site/src/components/themes/yar/YarArchive.astro | 13 +++++++++++++ .../site/src/components/themes/yar/YarHome.astro | 13 +++++++++++++ .../site/src/components/themes/yar/YarPost.astro | 13 +++++++++++++ .../src/components/themes/yar/YarTagPosts.astro | 13 +++++++++++++ .../site/src/components/themes/yar/YarTags.astro | 13 +++++++++++++ 6 files changed, 65 insertions(+), 1 deletion(-) diff --git a/frontend/site/src/components/SiteNav.astro b/frontend/site/src/components/SiteNav.astro index 05d4b4f..f0c93d4 100644 --- a/frontend/site/src/components/SiteNav.astro +++ b/frontend/site/src/components/SiteNav.astro @@ -3,7 +3,6 @@ const links = [ { href: '/', label: '首页' }, { href: '/archive/', label: '归档' }, { href: '/tags/', label: '标签' }, - { href: '/site-map/', label: '站点地图' }, { href: '/rss.xml', label: 'RSS' } ]; --- diff --git a/frontend/site/src/components/themes/yar/YarArchive.astro b/frontend/site/src/components/themes/yar/YarArchive.astro index 8a3fd35..6a301ac 100644 --- a/frontend/site/src/components/themes/yar/YarArchive.astro +++ b/frontend/site/src/components/themes/yar/YarArchive.astro @@ -66,6 +66,7 @@ const { archiveYears } = Astro.props; @@ -299,6 +300,18 @@ const { archiveYears } = Astro.props; margin: 0; } + .yar-footer a { + color: inherit; + text-decoration: underline; + text-decoration-color: rgb(138 144 137 / 38%); + text-underline-offset: 0.22em; + } + + .yar-footer a:hover { + color: #53605a; + text-decoration-color: rgb(83 96 90 / 70%); + } + @media (max-width: 760px) { .yar-shell { padding-top: 24px; diff --git a/frontend/site/src/components/themes/yar/YarHome.astro b/frontend/site/src/components/themes/yar/YarHome.astro index dc76a9c..7eaac18 100644 --- a/frontend/site/src/components/themes/yar/YarHome.astro +++ b/frontend/site/src/components/themes/yar/YarHome.astro @@ -106,6 +106,7 @@ function formatPublishedAt(date: string): string { @@ -451,6 +452,18 @@ function formatPublishedAt(date: string): string { margin: 0; } + .yar-footer a { + color: inherit; + text-decoration: underline; + text-decoration-color: rgb(138 144 137 / 38%); + text-underline-offset: 0.22em; + } + + .yar-footer a:hover { + color: #53605a; + text-decoration-color: rgb(83 96 90 / 70%); + } + @media (max-width: 760px) { .yar-shell { padding-top: 24px; diff --git a/frontend/site/src/components/themes/yar/YarPost.astro b/frontend/site/src/components/themes/yar/YarPost.astro index d3ca4a7..6956230 100644 --- a/frontend/site/src/components/themes/yar/YarPost.astro +++ b/frontend/site/src/components/themes/yar/YarPost.astro @@ -56,6 +56,7 @@ function formatPublishedAt(value: string): string { @@ -300,6 +301,18 @@ function formatPublishedAt(value: string): string { margin: 0; } + .yar-footer a { + color: inherit; + text-decoration: underline; + text-decoration-color: rgb(138 144 137 / 38%); + text-underline-offset: 0.22em; + } + + .yar-footer a:hover { + color: #53605a; + text-decoration-color: rgb(83 96 90 / 70%); + } + @media (max-width: 760px) { .yar-shell { padding-top: 24px; diff --git a/frontend/site/src/components/themes/yar/YarTagPosts.astro b/frontend/site/src/components/themes/yar/YarTagPosts.astro index 1f3fdd4..10946a1 100644 --- a/frontend/site/src/components/themes/yar/YarTagPosts.astro +++ b/frontend/site/src/components/themes/yar/YarTagPosts.astro @@ -46,6 +46,7 @@ const { tag, posts } = Astro.props; @@ -212,6 +213,18 @@ const { tag, posts } = Astro.props; margin: 0; } + .yar-footer a { + color: inherit; + text-decoration: underline; + text-decoration-color: rgb(138 144 137 / 38%); + text-underline-offset: 0.22em; + } + + .yar-footer a:hover { + color: #53605a; + text-decoration-color: rgb(83 96 90 / 70%); + } + @media (max-width: 760px) { .yar-shell { padding-top: 24px; diff --git a/frontend/site/src/components/themes/yar/YarTags.astro b/frontend/site/src/components/themes/yar/YarTags.astro index b0b6b78..811f1dc 100644 --- a/frontend/site/src/components/themes/yar/YarTags.astro +++ b/frontend/site/src/components/themes/yar/YarTags.astro @@ -40,6 +40,7 @@ const { tags } = Astro.props; @@ -190,6 +191,18 @@ const { tags } = Astro.props; margin: 0; } + .yar-footer a { + color: inherit; + text-decoration: underline; + text-decoration-color: rgb(138 144 137 / 38%); + text-underline-offset: 0.22em; + } + + .yar-footer a:hover { + color: #53605a; + text-decoration-color: rgb(83 96 90 / 70%); + } + @media (max-width: 760px) { .yar-shell { padding-top: 24px;