Skip to content

Commit

Permalink
feat: optimize lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Dec 28, 2023
1 parent 4ee4054 commit 1fb68ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,19 @@ const config: Config = {
items: [
{ label: '友链', position: 'right', to: 'friends' },
{ label: '导航', position: 'right', to: 'resource' },
// { label: '我的站点', position: 'right', to: 'website' },
{
html: `<a href="https://docusaurus.io/zh-CN/" target="_blank"><img style="height:50px;margin-top:0.5rem" src="/img/buildwith.png" /><a/>`,
html: `
<a href="https://docusaurus.io/zh-CN/" target="_blank" rel="noreferrer noopener">
<img src="/img/buildwith.png" alt="build with docusaurus" width="120" height="50"/>
<a/>
`,
},
],
},
],
copyright: `
<p style="margin-bottom: 0;"><a href="http://beian.miit.gov.cn/">${beian}</a></p>
<p style="display: inline-flex; align-items: center;"><img style="height:20px;margin-right: 0.5rem;" src="/img/police.png" /><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${beian1.match(
<p style="display: inline-flex; align-items: center;"><img style="height:20px;margin-right: 0.5rem;" src="/img/police.png" alt="police" height="20"/><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${beian1.match(
/\d+/,
)?.[0]}" >${beian1}</a></p>
<p>Copyright © 2020 - PRESENT 愧怍 Built with Docusaurus.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_components/HomepageBlog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function BlogItem({ post }: { post: BlogPost }) {
>
{frontMatter.image && (
<Link href={permalink} className={styles.image}>
<Image src={frontMatter.image!} alt={title} img={''} />
<Image src={frontMatter.image!} alt={title} img={''} height="240" />
</Link>
)}
<div className={'card__body'}>
Expand Down

1 comment on commit 1fb68ec

@vercel
Copy link

@vercel vercel bot commented on 1fb68ec Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-git-main-kuizuo1.vercel.app
blog-kuizuo.vercel.app
blog-kuizuo1.vercel.app
kuizuo.cn

Please sign in to comment.