From 12a331593cde67606a67eba54315426e87150e1c Mon Sep 17 00:00:00 2001 From: Michael Liendo Date: Fri, 19 Jan 2024 01:19:57 -0400 Subject: [PATCH] chore: optimization (#69) * Update header navigation links * Update dark mode button title * Refactor Header component styles and add dark mode support * Update image dimensions in Entry and +page components * Add lazy loading to avatar image * Add lazy loading for images * Update package.json version to 5.0.1 --- package.json | 2 +- src/lib/components/Entry.svelte | 4 ++-- src/lib/components/Header.svelte | 25 +++++++++++++++---------- src/routes/[[lang=lang]]/+page.svelte | 8 +++++++- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 1a367c7..a6bcae8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "michaelliendo.com", - "version": "5.0.0", + "version": "5.0.1", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/Entry.svelte b/src/lib/components/Entry.svelte index 90f2ef5..bddf931 100644 --- a/src/lib/components/Entry.svelte +++ b/src/lib/components/Entry.svelte @@ -27,10 +27,10 @@
  • -
    +
    {title}
      -
    • -
    • +
    • - + +
    • +
    • +
    -
    -
    +
    +
    -
    @@ -133,6 +133,9 @@ src={note.cover} class="rounded-t-2xl" alt={note.title} + loading="lazy" + height="200px" + width="100%" itemprop="image" />
    @@ -233,6 +236,9 @@ {note.title}