This commit is contained in:
tangly1024
2023-01-01 20:08:10 +08:00
parent 09beecb587
commit 4aff1de058
5 changed files with 6 additions and 9 deletions

View File

@@ -3,9 +3,6 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
})
module.exports = withBundleAnalyzer({
future: {
webpack5: true
},
images: {
// 图片压缩
formats: ['image/avif', 'image/webp'],

View File

@@ -50,7 +50,7 @@ const Slug = props => {
}
}
}, 20 * 1000)
const meta = { title: `${props?.siteInfo?.title || BLOG.TITLE} | loading`, image: siteInfo?.pageCover }
const meta = { title: `${props?.siteInfo?.title || BLOG.TITLE} | loading`, image: siteInfo?.pageCover || BLOG.HOME_BANNER_IMAGE }
return <ThemeComponents.LayoutSlug {...props} showArticleInfo={true} meta={meta} />
}

View File

@@ -24,10 +24,10 @@ export const LayoutCategoryIndex = (props) => {
<i className='mr-4 fas fa-folder' />{category.name}({category.count})
</div>
</Link>
);
)
})}
</div>
</div>
</LayoutBase>
);
)
}

View File

@@ -42,7 +42,7 @@ const BlogArchiveItem = ({ posts = [], archiveTitle }) => {
))}
</ul>
</div>
);
)
}
}

View File

@@ -21,12 +21,12 @@ export const LayoutCategoryIndex = props => {
{e.name}({e.count})
</div>
</Link>
);
)
})}
</div>
</div>
</div>
</LayoutBase>
);
)
}