feat: update hero image and remove lazy for img tag
This commit is contained in:
parent
558923909d
commit
c4d0b530f8
6 changed files with 4 additions and 25 deletions
BIN
public/hero.jpg
Normal file
BIN
public/hero.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
public/hero.webp
BIN
public/hero.webp
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
|
@ -27,14 +27,7 @@ const { Content } = await page.render()
|
|||
{
|
||||
image && (
|
||||
<p>
|
||||
<img
|
||||
width="100%"
|
||||
height="auto"
|
||||
src={image.src}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
alt={image.alt || ''}
|
||||
/>
|
||||
<img width="640" height="360" src={image.src} alt={image.alt || ''} />
|
||||
</p>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -12,14 +12,7 @@ import siteConfig from '@/site-config'
|
|||
by <a target="_blank" href="https://antfu.me">antfu.me</a>.
|
||||
</p>
|
||||
<p>
|
||||
<img
|
||||
width="100%"
|
||||
height="auto"
|
||||
src="/hero.webp"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
alt="Hero Image"
|
||||
/>
|
||||
<img width="640" height="360" src="/hero.jpg" alt="Hero Image" />
|
||||
</p>
|
||||
<p>
|
||||
Based on first principles thinking, and you can also see from the picture
|
||||
|
|
|
@ -38,14 +38,7 @@ function getDate(date: string) {
|
|||
{
|
||||
image && (
|
||||
<p>
|
||||
<img
|
||||
width="100%"
|
||||
height="auto"
|
||||
src={image.src}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
alt={image.alt || ''}
|
||||
/>
|
||||
<img width="640" height="360" src={image.src} alt={image.alt || ''} />
|
||||
</p>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ export const siteConfig = {
|
|||
subtitle: 'Vitesse theme for Astro, supports Vue and UnoCSS.',
|
||||
description: 'A Minimal, SEO-friendly portfolio and blog theme for Astro.',
|
||||
image: {
|
||||
src: '/hero.webp',
|
||||
src: '/hero.jpg',
|
||||
alt: 'Website Main Image',
|
||||
},
|
||||
email: 'kaivanwong@outlook.com',
|
||||
|
|
Loading…
Reference in a new issue