diff --git a/.env.local b/.env.local index fbd52c87..ad3056e7 100644 --- a/.env.local +++ b/.env.local @@ -1,2 +1,2 @@ # 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables -NEXT_PUBLIC_VERSION=4.0.13 \ No newline at end of file +NEXT_PUBLIC_VERSION=4.0.15 \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index bab5ea27..9836da77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { } }, rules: { + semi: 0, 'react/no-unknown-property': 'off', // + } + `} + ) } export { Style } diff --git a/themes/next/components/ArticleDetail.js b/themes/next/components/ArticleDetail.js index a4f575ec..f26b6691 100644 --- a/themes/next/components/ArticleDetail.js +++ b/themes/next/components/ArticleDetail.js @@ -34,7 +34,7 @@ export default function ArticleDetail(props) { data-aos-duration="300" data-aos-once="true" data-aos-anchor-placement="top-bottom" - className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray" + className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray article-padding" > {showArticleInfo &&
@@ -78,7 +78,7 @@ export default function ArticleDetail(props) {
} {/* Notion内容主体 */} -
+
{post && ()}
diff --git a/themes/next/components/BlogPostCard.js b/themes/next/components/BlogPostCard.js index 050b33c2..90224ecd 100644 --- a/themes/next/components/BlogPostCard.js +++ b/themes/next/components/BlogPostCard.js @@ -28,10 +28,10 @@ const BlogPostCard = ({ post, showSummary }) => { data-aos-duration="500" data-aos-once="true" data-aos-anchor-placement="top-bottom" - className={`cursor-pointer hover:underline text-3xl ${showPreview ? 'text-center' : '' + className={`cursor-pointer text-3xl ${showPreview ? 'text-center' : '' } leading-tight text-gray-700 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400`}> - {post.title} + {post.title} @@ -48,10 +48,10 @@ const BlogPostCard = ({ post, showSummary }) => { + className="hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer font-light text-sm transform"> - {post.category} + {post.category} | @@ -60,8 +60,8 @@ const BlogPostCard = ({ post, showSummary }) => { - {post.date?.start_date} + className="hover:text-blue-500 dark:hover:text-blue-400 font-light cursor-pointer text-sm leading-4 mr-3"> + {post.date?.start_date} diff --git a/themes/next/components/SideAreaRight.js b/themes/next/components/SideAreaRight.js index e23759c4..ee694d35 100644 --- a/themes/next/components/SideAreaRight.js +++ b/themes/next/components/SideAreaRight.js @@ -62,7 +62,7 @@ const SideAreaRight = (props) => { passHref className='text-gray-400 hover:text-black dark:text-gray-400 dark:hover:text-white hover:underline cursor-pointer'> - {locale.COMMON.MORE} + {locale.COMMON.MORE} diff --git a/themes/next/style.js b/themes/next/style.js index d01b13b3..daf6af46 100644 --- a/themes/next/style.js +++ b/themes/next/style.js @@ -15,6 +15,24 @@ const Style = () => { background-color: black; } + .article-padding { + padding: 40px; + } + + // 菜单下划线动画 + #theme-next .menu-link { + text-decoration: none; + background-image: linear-gradient(#4e80ee, #4e80ee); + background-repeat: no-repeat; + background-position: bottom center; + background-size: 0 2px; + transition: background-size 100ms ease-in-out; + } + #theme-next .menu-link:hover { + background-size: 100% 2px; + color: #4e80ee; + } + `} } diff --git a/themes/nobelium/components/BlogPost.js b/themes/nobelium/components/BlogPost.js index b1080b35..28bc1710 100644 --- a/themes/nobelium/components/BlogPost.js +++ b/themes/nobelium/components/BlogPost.js @@ -1,6 +1,5 @@ import Link from 'next/link' import BLOG from '@/blog.config' -import formatDate from '@/lib/formatDate' const BlogPost = ({ post }) => { return ( @@ -12,7 +11,7 @@ const BlogPost = ({ post }) => { {post.title}
diff --git a/themes/plog/components/BlogPost.js b/themes/plog/components/BlogPost.js index 9ea34720..a75fa8d5 100644 --- a/themes/plog/components/BlogPost.js +++ b/themes/plog/components/BlogPost.js @@ -36,10 +36,10 @@ const BlogPost = (props) => { -

+

{post?.title}

- {post?.category &&
+ {post?.category &&
{post?.category} diff --git a/themes/plog/components/BottomNav.js b/themes/plog/components/BottomNav.js index 91efb30d..7af88fba 100644 --- a/themes/plog/components/BottomNav.js +++ b/themes/plog/components/BottomNav.js @@ -13,7 +13,7 @@ import LogoBar from './LogoBar' */ const BottomNav = props => { return <> -