diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 430708b2..dfc22be6 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -17,10 +17,10 @@ const BlogPostCard = ({ post, tags }) => {
-
+
- - {post.category} + + {post.category} | diff --git a/components/CategoryGroup.js b/components/CategoryGroup.js index f4b87ed5..3d2b8dbd 100644 --- a/components/CategoryGroup.js +++ b/components/CategoryGroup.js @@ -13,7 +13,7 @@ const CategoryGroup = ({ currentCategory, categories }) => { ? 'bg-gray-200 dark:bg-black text-black dark:text-white' : 'dark:text-gray-400 text-gray-500') + ' duration-300 hover:text-blue-500 dark:hover:text-blue-400 hover:underline px-5 cursor-pointer py-2'}> - {category}({categories[category]})
+ {category}({categories[category]})
})}
diff --git a/components/Footer.js b/components/Footer.js index 820b2a7e..7c67918e 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -10,16 +10,16 @@ const Footer = ({ fullWidth = true }) => { ) } diff --git a/components/SideBar.js b/components/SideBar.js index b31ecc1e..fd00fd34 100644 --- a/components/SideBar.js +++ b/components/SideBar.js @@ -41,7 +41,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c {posts && (
-
{locale.COMMON.LATEST_POSTS}
+
{locale.COMMON.LATEST_POSTS}
@@ -51,7 +51,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c {categories && (
-
{locale.COMMON.CATEGORY}
+
{locale.COMMON.CATEGORY}
{locale.COMMON.MORE} @@ -66,7 +66,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c {tags && (
-
{locale.COMMON.TAGS}
+
{locale.COMMON.TAGS}
{locale.COMMON.MORE} diff --git a/lib/cache/cache_manager.js b/lib/cache/cache_manager.js index f27d544f..b28c2c0f 100644 --- a/lib/cache/cache_manager.js +++ b/lib/cache/cache_manager.js @@ -2,7 +2,7 @@ import { getCacheFromFile, setCacheToFile } from '@/lib/cache/local_file_cache' import { getCacheFromMemory, setCacheToMemory } from '@/lib/cache/memory_cache' import BLOG from '@/blog.config' // 关闭本地缓存 -const enableCache = false +const enableCache = true /** * 为减少频繁接口请求,notion数据将被缓存 diff --git a/package.json b/package.json index e586e478..57a027b1 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "dev-mac": "NODE_OPTIONS='--inspect' next dev", "build": "next build", "start": "next start", - "postbuild": "next-sitemap --config next-sitemap.config.js" + "post-build": "next-sitemap --config next-sitemap.config.js" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.36",