From 124d12c7cd3c3233d43dd4f3cae2f51e247a5185 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 12 Mar 2023 22:43:50 +0800 Subject: [PATCH] pic without next/Image --- themes/hexo/components/BlogPostCard.js | 10 +++++----- themes/hexo/components/Header.js | 8 +++++--- themes/matery/components/BlogPostCard.js | 10 +++++----- themes/matery/components/Header.js | 8 +++++--- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index 02940295..e3e3d7ff 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -4,7 +4,7 @@ import React from 'react' import TagItemMini from './TagItemMini' import CONFIG_HEXO from '../config_hexo' import NotionPage from '@/components/NotionPage' -import Image from 'next/image' +// import Image from 'next/image' const BlogPostCard = ({ post, showSummary, siteInfo }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap @@ -97,12 +97,12 @@ const BlogPostCard = ({ post, showSummary, siteInfo }) => {
{/* eslint-disable-next-line @next/next/no-img-element */} - {/* {post.title} */} -
+ /> + {/*
{ blurDataURL='/bg_image.jpg' style={{ objectFit: 'cover' }} fill/> -
+
*/}
)} diff --git a/themes/hexo/components/Header.js b/themes/hexo/components/Header.js index d6fff722..81b2fe2e 100644 --- a/themes/hexo/components/Header.js +++ b/themes/hexo/components/Header.js @@ -1,4 +1,4 @@ -import Image from 'next/image' +// import Image from 'next/image' import { useEffect, useState } from 'react' import Typed from 'typed.js' import CONFIG_HEXO from '../config_hexo' @@ -59,11 +59,13 @@ const Header = props => { className="w-full h-screen bg-black text-white relative" >
- + blurDataURL='/bg_image.jpg' /> */} + {/* eslint-disable-next-line @next/next/no-img-element */} +
diff --git a/themes/matery/components/BlogPostCard.js b/themes/matery/components/BlogPostCard.js index e7da2f17..18ae7c47 100644 --- a/themes/matery/components/BlogPostCard.js +++ b/themes/matery/components/BlogPostCard.js @@ -3,7 +3,7 @@ import Link from 'next/link' import React from 'react' import TagItemMini from './TagItemMini' import CONFIG_MATERY from '../config_matery' -import Image from 'next/image' +// import Image from 'next/image' const BlogPostCard = ({ post, showSummary, siteInfo }) => { const showPreview = CONFIG_MATERY.POST_LIST_PREVIEW && post.blockMap @@ -28,12 +28,12 @@ const BlogPostCard = ({ post, showSummary, siteInfo }) => {
{/* eslint-disable-next-line @next/next/no-img-element */} - {/* {post.title} */} -
+ /> + {/*
{ blurDataURL='/bg_image.jpg' style={{ objectFit: 'cover' }} fill/> -
+
*/} {post.title}
diff --git a/themes/matery/components/Header.js b/themes/matery/components/Header.js index b24ff85d..d230b0ba 100644 --- a/themes/matery/components/Header.js +++ b/themes/matery/components/Header.js @@ -1,4 +1,4 @@ -import Image from 'next/image' +// import Image from 'next/image' import { useEffect, useState } from 'react' import Typed from 'typed.js' import CONFIG_MATERY from '../config_matery' @@ -90,11 +90,13 @@ const Header = props => { className="md:bg-fixed w-full h-screen bg-black text-white relative" >
- + blurDataURL='/bg_image.jpg' /> */} + {/* eslint-disable-next-line @next/next/no-img-element */} +