From 84fe9e5e633aba4deab48de07608be27d981bb38 Mon Sep 17 00:00:00 2001 From: emengweb Date: Mon, 24 Apr 2023 10:51:56 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=BB=E9=A2=98hexo?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=87=A0=E5=A4=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8C=85=E6=8B=AC=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=88=86=E7=B1=BB=E6=8C=89=E9=92=AE=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E8=BF=87=E5=B0=8F=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=A4=9A=E5=87=BAhr=E5=88=86=E5=89=B2=E7=BA=BF?= =?UTF-8?q?=E7=BE=8E=E5=8C=96=E6=9A=97=E8=89=B2=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E8=A7=86=E8=A7=89=E6=95=88=E6=9E=9C=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/LayoutSlug.js | 2 +- themes/hexo/components/Announcement.js | 2 +- themes/hexo/components/ArticleAdjacent.js | 2 +- themes/hexo/components/ArticleCopyright.js | 2 +- themes/hexo/components/ArticleRecommend.js | 4 ++-- themes/hexo/components/Footer.js | 5 ++--- themes/hexo/components/Header.js | 11 ++++++----- themes/hexo/components/HeaderArticle.js | 20 ++++++++++++++++---- themes/hexo/components/InfoCard.js | 4 ++-- themes/hexo/components/Logo.js | 2 +- themes/hexo/components/NavButtonGroup.js | 4 ++-- themes/hexo/components/SideBar.js | 1 - themes/hexo/config_hexo.js | 4 ++-- 13 files changed, 37 insertions(+), 26 deletions(-) diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index b47478e8..17850e55 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -74,7 +74,7 @@ export const LayoutSlug = props => { -
+
{/* 评论互动 */}
diff --git a/themes/hexo/components/Announcement.js b/themes/hexo/components/Announcement.js index 677cb467..02270982 100644 --- a/themes/hexo/components/Announcement.js +++ b/themes/hexo/components/Announcement.js @@ -10,7 +10,7 @@ const Announcement = ({ post, className }) => {
{locale.COMMON.ANNOUNCEMENT}
{post && (
- +
)}
diff --git a/themes/hexo/components/ArticleAdjacent.js b/themes/hexo/components/ArticleAdjacent.js index 6e1face7..3f4a929a 100644 --- a/themes/hexo/components/ArticleAdjacent.js +++ b/themes/hexo/components/ArticleAdjacent.js @@ -11,7 +11,7 @@ export default function ArticleAdjacent ({ prev, next }) { return <> } return ( -
+
  • {locale.COMMON.URL}: - + {path}
  • diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index 30373f67..d2354cd3 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -30,8 +30,8 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) {
    {recommendPosts.map(post => { const headerImage = post?.page_cover - ? `url("${post.page_cover}")` - : `url("${siteInfo?.pageCover}")` + ? `url("${post.page_cover}&w=240")` + : `url("${siteInfo?.pageCover}&w=240")` return ( ( { -
    -

    {title}

    - Powered by NotionNext {BLOG.VERSION}.
    +

    {title} | {BLOG.BIO}

    +

    Powered by NotionNext {BLOG.VERSION}.


    ) diff --git a/themes/hexo/components/Header.js b/themes/hexo/components/Header.js index 60edd4e8..db656c31 100644 --- a/themes/hexo/components/Header.js +++ b/themes/hexo/components/Header.js @@ -7,7 +7,7 @@ import throttle from 'lodash.throttle' let wrapperTop = 0 let windowTop = 0 -let autoScroll = false +let autoScroll = true const enableAutoScroll = false // 是否开启自动吸附滚动 /** @@ -85,12 +85,12 @@ const Header = props => { return ( ) diff --git a/themes/hexo/components/HeaderArticle.js b/themes/hexo/components/HeaderArticle.js index 2abfc9b7..8c0f2a0e 100644 --- a/themes/hexo/components/HeaderArticle.js +++ b/themes/hexo/components/HeaderArticle.js @@ -1,4 +1,5 @@ import Link from 'next/link' +import TagItemMini from './TagItemMini' import { useGlobal } from '@/lib/global' import formatDate from '@/lib/formatDate' import BLOG from '@/blog.config' @@ -9,7 +10,7 @@ export default function HeaderArticle({ post, siteInfo }) { if (!post) { return <> } - const headerImage = post?.page_cover ? `url("${post.page_cover}")` : `url("${siteInfo?.pageCover}")` + const headerImage = post?.page_cover ? `url("${post.page_cover}&w=1600")` : `url("${siteInfo?.pageCover}&w=1600")` const date = formatDate( post?.date?.start_date || post?.createdTime, @@ -31,11 +32,11 @@ export default function HeaderArticle({ post, siteInfo }) {
    {/* 文章Title */} -
    +
    {post.title}
    -
    +
    {post.category && <> @@ -46,7 +47,7 @@ export default function HeaderArticle({ post, siteInfo }) { }
    -
    +
    {post?.type !== 'Page' && ( <>
    + {BLOG.ANALYTICS_BUSUANZI_ENABLE &&
    {locale.COMMON.VIEWS}
    }
    + +
    + {post.tagItems && ( +
    + {post.tagItems.map(tag => ( + + ))} +
    + )} +
    diff --git a/themes/hexo/components/InfoCard.js b/themes/hexo/components/InfoCard.js index 1393211a..3a978d68 100644 --- a/themes/hexo/components/InfoCard.js +++ b/themes/hexo/components/InfoCard.js @@ -8,7 +8,7 @@ export function InfoCard (props) { const router = useRouter() return
    { router.push('/') }} @@ -16,7 +16,7 @@ export function InfoCard (props) { {/* eslint-disable-next-line @next/next/no-img-element */} {BLOG.AUTHOR}/
    -
    {BLOG.AUTHOR}
    +
    {BLOG.AUTHOR}
    {BLOG.BIO}
    diff --git a/themes/hexo/components/Logo.js b/themes/hexo/components/Logo.js index 61408026..de407279 100644 --- a/themes/hexo/components/Logo.js +++ b/themes/hexo/components/Logo.js @@ -7,7 +7,7 @@ const Logo = props => { return (
    -
    {siteInfo?.title || BLOG.TITLE}
    +
    {siteInfo?.title || BLOG.TITLE}
    ); diff --git a/themes/hexo/components/NavButtonGroup.js b/themes/hexo/components/NavButtonGroup.js index f1ca4297..d32a25f1 100644 --- a/themes/hexo/components/NavButtonGroup.js +++ b/themes/hexo/components/NavButtonGroup.js @@ -14,7 +14,7 @@ const NavButtonGroup = (props) => { } return ( -
    -
    ) diff --git a/themes/hexo/config_hexo.js b/themes/hexo/config_hexo.js index ded4489f..fafb6e5b 100644 --- a/themes/hexo/config_hexo.js +++ b/themes/hexo/config_hexo.js @@ -1,9 +1,9 @@ const CONFIG_HEXO = { HOME_BANNER_ENABLE: true, - HOME_BANNER_GREETINGS: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页大图标语文字 + HOME_BANNER_GREETINGS: ['AI CAN MAKE Document', 'AI CAN MAKE Brainstorm', 'AI CAN MAKE Picture', 'AI CAN MAKE MORE', 'MAKE GREAT THING With AI 🎉'], // 首页大图标语文字 HOME_NAV_BUTTONS: true, // 首页是否显示分类大图标按钮 - HOME_NAV_BACKGROUND_IMG_FIXED: true, // 首页背景图滚动时是否固定,true 则滚动时图片不懂; false则随鼠标滚动 + HOME_NAV_BACKGROUND_IMG_FIXED: false, // 首页背景图滚动时是否固定,true 则滚动时图片不懂; false则随鼠标滚动 // 菜单配置 MENU_INDEX: true, // 显示首页