- {/* eslint-disable-next-line @next/next/no-img-element */}
-
{siteInfo?.title || BLOG.TITLE}
diff --git a/themes/heo/components/PaginationNumber.js b/themes/heo/components/PaginationNumber.js
index 3d525d4e..4a1022ee 100644
--- a/themes/heo/components/PaginationNumber.js
+++ b/themes/heo/components/PaginationNumber.js
@@ -98,7 +98,7 @@ const PaginationNumber = ({ page, totalPage }) => {
query: router.query.s ? { s: router.query.s } : {}
}}
rel="prev"
- className={`${showPrev ? 'block' : 'hidden'} relative w-full flex-1 h-14 flex items-center transition-all duration-200 justify-center py-2 px-2 bg-white dark:bg-[#1e1e1e] border rounded-xl cursor-pointer`}>
+ className={`${showPrev ? 'block' : 'hidden'} dark:text-white relative w-full flex-1 h-14 flex items-center transition-all duration-200 justify-center py-2 px-2 bg-white dark:bg-[#1e1e1e] border rounded-xl cursor-pointer`}>
{locale.PAGINATION.PREV}
@@ -111,7 +111,7 @@ const PaginationNumber = ({ page, totalPage }) => {
query: router.query.s ? { s: router.query.s } : {}
}}
rel="next"
- className={`${+showNext ? 'block' : 'hidden'} relative w-full flex-1 h-14 flex items-center transition-all duration-200 justify-center py-2 px-2 bg-white dark:bg-[#1e1e1e] border rounded-xl cursor-pointer`}>
+ className={`${+showNext ? 'block' : 'hidden'} dark:text-white relative w-full flex-1 h-14 flex items-center transition-all duration-200 justify-center py-2 px-2 bg-white dark:bg-[#1e1e1e] border rounded-xl cursor-pointer`}>
{locale.PAGINATION.NEXT}
diff --git a/themes/heo/components/PostHeader.js b/themes/heo/components/PostHeader.js
index 079b1c20..55f1a37c 100644
--- a/themes/heo/components/PostHeader.js
+++ b/themes/heo/components/PostHeader.js
@@ -4,6 +4,7 @@ import NotionIcon from '@/components/NotionIcon'
import WavesArea from './WavesArea'
import { HashTag } from '@/components/HeroIcons'
import WordCount from '@/components/WordCount'
+import LazyImage from '@/components/LazyImage'
export default function PostHeader({ post, siteInfo }) {
if (!post) {
@@ -30,8 +31,7 @@ export default function PostHeader({ post, siteInfo }) {
{/* 文章背景图 */}
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
{/* 文章文字描述 */}
diff --git a/themes/heo/components/ReadingProgress.js b/themes/heo/components/ReadingProgress.js
index ada553ce..0f9c55bb 100644
--- a/themes/heo/components/ReadingProgress.js
+++ b/themes/heo/components/ReadingProgress.js
@@ -13,7 +13,7 @@ export default function ReadingProgress() {
const clientHeight = document.documentElement.clientHeight
const scrollY = window.scrollY || window.pageYOffset
- const percent = Math.floor((scrollY / (scrollHeight - clientHeight)) * 100)
+ const percent = Math.floor((scrollY / (scrollHeight - clientHeight - 20)) * 100)
setScrollPercentage(percent)
}
diff --git a/themes/heo/components/SideBar.js b/themes/heo/components/SideBar.js
index e43c4e12..cb7427ac 100644
--- a/themes/heo/components/SideBar.js
+++ b/themes/heo/components/SideBar.js
@@ -1,4 +1,5 @@
import BLOG from '@/blog.config'
+import LazyImage from '@/components/LazyImage'
import { useRouter } from 'next/router'
import MenuGroupCard from './MenuGroupCard'
import { MenuListSide } from './MenuListSide'
@@ -20,7 +21,7 @@ const SideBar = (props) => {
{ router.push('/') }}
className='justify-center items-center flex hover:rotate-45 py-6 hover:scale-105 dark:text-gray-100 transform duration-200 cursor-pointer'>
{/* eslint-disable-next-line @next/next/no-img-element */}
-
+
diff --git a/themes/heo/index.js b/themes/heo/index.js
index d111b3db..4c26a948 100644
--- a/themes/heo/index.js
+++ b/themes/heo/index.js
@@ -30,6 +30,7 @@ import { HashTag } from '@/components/HeroIcons'
import LatestPostsGroup from './components/LatestPostsGroup'
import FloatTocButton from './components/FloatTocButton'
import replaceSearchResult from '@/components/Mark'
+import LazyImage from '@/components/LazyImage'
/**
* 基础布局 采用上中下布局,移动端使用顶部侧边导航栏
@@ -321,8 +322,7 @@ const Layout404 = props => {
{/* 404卡牌 */}
{/* 左侧动图 */}
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
{/* 右侧文字 */}
diff --git a/themes/hexo/components/InfoCard.js b/themes/hexo/components/InfoCard.js
index 661da999..5f1116e8 100644
--- a/themes/hexo/components/InfoCard.js
+++ b/themes/hexo/components/InfoCard.js
@@ -3,6 +3,7 @@ import { useRouter } from 'next/router'
import Card from './Card'
import SocialButton from './SocialButton'
import MenuGroupCard from './MenuGroupCard'
+import LazyImage from '@/components/LazyImage'
/**
* 社交信息卡
@@ -21,7 +22,7 @@ export function InfoCard(props) {
}}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
-
+
{BLOG.AUTHOR}
{BLOG.BIO}
diff --git a/themes/hexo/components/LatestPostsGroup.js b/themes/hexo/components/LatestPostsGroup.js
index 22ac3e42..d315367a 100644
--- a/themes/hexo/components/LatestPostsGroup.js
+++ b/themes/hexo/components/LatestPostsGroup.js
@@ -1,4 +1,5 @@
import BLOG from '@/blog.config'
+import LazyImage from '@/components/LazyImage'
import { useGlobal } from '@/lib/global'
// import Image from 'next/image'
import Link from 'next/link'
@@ -40,16 +41,7 @@ const LatestPostsGroup = ({ latestPosts, siteInfo }) => {
className={'my-3 flex'}>
- {/*
*/}
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
{
{ router.push('/') }}
className='justify-center items-center flex hover:rotate-45 py-6 hover:scale-105 dark:text-gray-100 transform duration-200 cursor-pointer'>
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
diff --git a/themes/landing/components/Features.js b/themes/landing/components/Features.js
index f027bd73..1139ce7b 100644
--- a/themes/landing/components/Features.js
+++ b/themes/landing/components/Features.js
@@ -4,6 +4,7 @@
import { useState, useRef, useEffect } from 'react'
import { Transition } from '@headlessui/react'
import CONFIG from '../config'
+import LazyImage from '@/components/LazyImage'
// import FeaturesElement from '@/public/images/features-element.png'
export default function Features() {
@@ -113,9 +114,7 @@ export default function Features() {
unmount={false}
>
- {/*
*/}
- {/*
*/}
-
+
@@ -136,7 +135,7 @@ export default function Features() {
{/*
*/}
-
+
{/* Item 3 */}
@@ -156,7 +155,7 @@ export default function Features() {
{/*
*/}
-
+
diff --git a/themes/landing/components/ModalVideo.js b/themes/landing/components/ModalVideo.js
index 502f3fa6..82cb7352 100644
--- a/themes/landing/components/ModalVideo.js
+++ b/themes/landing/components/ModalVideo.js
@@ -3,6 +3,7 @@
import { useState, useRef, Fragment } from 'react'
import { Dialog, Transition } from '@headlessui/react'
import CONFIG from '../config'
+import LazyImage from '@/components/LazyImage'
export default function ModalVideo({
thumb,
@@ -23,8 +24,7 @@ export default function ModalVideo({
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
diff --git a/themes/landing/components/Testimonials.js b/themes/landing/components/Testimonials.js
index bb38c176..377040e3 100644
--- a/themes/landing/components/Testimonials.js
+++ b/themes/landing/components/Testimonials.js
@@ -1,7 +1,7 @@
-/* eslint-disable @next/next/no-img-element */
// import Image from 'next/image'
// import TestimonialImage from '@/public/images/testimonial.jpg'
+import LazyImage from '@/components/LazyImage'
import CONFIG from '../config'
export default function Testimonials() {
@@ -44,7 +44,7 @@ export default function Testimonials() {
-
+
{CONFIG.TESTIMONIALS_WORD}
diff --git a/themes/matery/components/BlogPostCard.js b/themes/matery/components/BlogPostCard.js
index f30b5948..c6df0be6 100644
--- a/themes/matery/components/BlogPostCard.js
+++ b/themes/matery/components/BlogPostCard.js
@@ -4,6 +4,7 @@ import React from 'react'
import TagItemMini from './TagItemMini'
import CONFIG from '../config'
import TwikooCommentCount from '@/components/TwikooCommentCount'
+import LazyImage from '@/components/LazyImage'
// import Image from 'next/image'
const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
@@ -32,7 +33,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
{/* eslint-disable-next-line @next/next/no-img-element */}
-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
+
{BLOG.AUTHOR}
{BLOG.BIO}
diff --git a/themes/matery/components/PostHeader.js b/themes/matery/components/PostHeader.js
index dd58bd5f..56f8e541 100644
--- a/themes/matery/components/PostHeader.js
+++ b/themes/matery/components/PostHeader.js
@@ -1,4 +1,4 @@
-import Image from 'next/image'
+import LazyImage from '@/components/LazyImage'
/**
* 文章背景图
@@ -8,17 +8,11 @@ export default function PostHeader({ post, siteInfo }) {
const title = post?.title
return (