diff --git a/bun.lockb b/bun.lockb index deee015..6a12e31 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 9e7f473..dbdad32 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ }, "type": "module", "dependencies": { + "@sveltejs/enhanced-img": "^0.3.4", "highlight.js": "^11.8.0" } } diff --git a/src/lib/components/Entry.svelte b/src/lib/components/Entry.svelte index 5c31faf..a6cd13d 100644 --- a/src/lib/components/Entry.svelte +++ b/src/lib/components/Entry.svelte @@ -33,8 +33,6 @@ alt={title} class="rounded-md object-cover h-[220px]" src={previewImageUrl} - width="350" - height="100" />
diff --git a/src/routes/[[lang=lang]]/+page.svelte b/src/routes/[[lang=lang]]/+page.svelte index b6b74f4..0da2002 100644 --- a/src/routes/[[lang=lang]]/+page.svelte +++ b/src/routes/[[lang=lang]]/+page.svelte @@ -111,12 +111,10 @@
- Michael Liendo Avatar diff --git a/vite.config.ts b/vite.config.ts index ac1b9e9..cd608d7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,15 +1,17 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; import Icons from 'unplugin-icons/vite'; +import { enhancedImages } from '@sveltejs/enhanced-img'; export default defineConfig({ - define: { - __BUILD_DATE__: JSON.stringify(+new Date()) - }, - plugins: [ - sveltekit(), - Icons({ - compiler: 'svelte' - }) - ] + define: { + __BUILD_DATE__: JSON.stringify(+new Date()), + }, + plugins: [ + sveltekit(), + enhancedImages(), + Icons({ + compiler: 'svelte', + }), + ], });