From c8c7769e9a183bdfb3c984d0771abcf5ded4bb9f Mon Sep 17 00:00:00 2001 From: Blackberry009 <765042894@qq.com> Date: Fri, 13 Jun 2025 18:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=91=E6=9A=97=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/dev.config.js | 2 +- themes/typography/components/BlogItem.js | 7 ++----- themes/typography/components/BlogListPage.js | 2 +- themes/typography/components/Footer.js | 10 +--------- themes/typography/components/MenuItemDrop.js | 2 +- themes/typography/components/NavBar.js | 12 ++++++------ themes/typography/index.js | 2 +- themes/typography/style.js | 11 ++++++++++- 8 files changed, 23 insertions(+), 25 deletions(-) diff --git a/conf/dev.config.js b/conf/dev.config.js index c34a8c64..ea324f96 100644 --- a/conf/dev.config.js +++ b/conf/dev.config.js @@ -19,7 +19,7 @@ module.exports = { BUNDLE_ANALYZER: process.env.ANALYZE === 'true' || false, // 是否展示编译依赖内容与大小 VERSION: (() => { try { - // 优先使用环境变量,否则从package.json中获取版本号 + // 优先使用环境变量,否则从 package.json 中获取版本号 return ( process.env.NEXT_PUBLIC_VERSION || require('../package.json').version ) diff --git a/themes/typography/components/BlogItem.js b/themes/typography/components/BlogItem.js index 195f9be2..4ce78a9a 100644 --- a/themes/typography/components/BlogItem.js +++ b/themes/typography/components/BlogItem.js @@ -15,9 +15,7 @@ export const BlogItem = props => { const showPreview = siteConfig('POST_LIST_PREVIEW', false, NOTION_CONFIG) && post.blockMap return ( -
+
{/* 文章标题 */}
@@ -39,7 +37,7 @@ export const BlogItem = props => {

+ className='text-xl underline decoration-2 font-bold text-[var(--primary-color)] dark:text-white dark:hover:bg-white dark:hover:text-[var(--primary-color)] px-2 duration-200 transition-all rounded-sm'> {siteConfig('POST_TITLE_ICON') && ( )} @@ -99,7 +97,6 @@ export const BlogItem = props => {

-
) } diff --git a/themes/typography/components/BlogListPage.js b/themes/typography/components/BlogListPage.js index f11d2cc2..e1172adb 100644 --- a/themes/typography/components/BlogListPage.js +++ b/themes/typography/components/BlogListPage.js @@ -35,7 +35,7 @@ export default function BlogListPage(props) { .replace('.html', '') return ( -
+
{posts?.map((p, index) => (
diff --git a/themes/typography/components/Footer.js b/themes/typography/components/Footer.js index b63bb7bb..8d03d7f2 100644 --- a/themes/typography/components/Footer.js +++ b/themes/typography/components/Footer.js @@ -18,19 +18,11 @@ export default function Footer(props) { ) diff --git a/themes/typography/components/MenuItemDrop.js b/themes/typography/components/MenuItemDrop.js index 6302e4f3..1f6d7a3a 100644 --- a/themes/typography/components/MenuItemDrop.js +++ b/themes/typography/components/MenuItemDrop.js @@ -13,7 +13,7 @@ export const MenuItemDrop = ({ link }) => { + className='dark:hover:text-[var(--primary-color)] dark:hover:bg-white menu-link underline decoration-2 hover:no-underline hover:bg-[#2E405B] hover:text-white text-[var(--primary-color)] dark:text-gray-200 tracking-widest pb-1 font-bold'> {link?.name}
diff --git a/themes/typography/components/NavBar.js b/themes/typography/components/NavBar.js index 31519d8e..215e427b 100644 --- a/themes/typography/components/NavBar.js +++ b/themes/typography/components/NavBar.js @@ -14,19 +14,19 @@ import Link from 'next/link' export default function NavBar(props) { return (
-
+
- 活版印字 -
-
- Typography + 山野
+ {/*
+ Blog +
*/}
-