From acdd20d4a8138e1e3cb81c4bae981948ca51e417 Mon Sep 17 00:00:00 2001 From: sevichecc <--global> Date: Sun, 18 Dec 2022 16:16:30 +0800 Subject: [PATCH] revert imagetool --- src/lib/components/extra/profile.svelte | 2 +- src/lib/components/index_profile.svelte | 14 +++++++++----- src/lib/config/site.ts | 1 + src/lib/types/site.ts | 7 +------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/components/extra/profile.svelte b/src/lib/components/extra/profile.svelte index 69b454b9..c45b4c6d 100644 --- a/src/lib/components/extra/profile.svelte +++ b/src/lib/components/extra/profile.svelte @@ -22,7 +22,7 @@ alt={name ?? site.author.name} loading="lazy" decoding="async" - src="/assets/any@192.png"/> + src={avatar ?? site.author.avatar}/> {#if subname} diff --git a/src/lib/components/index_profile.svelte b/src/lib/components/index_profile.svelte index 2acf264b..85d4a977 100644 --- a/src/lib/components/index_profile.svelte +++ b/src/lib/components/index_profile.svelte @@ -1,22 +1,26 @@
- + {site.author.name} + {#if site.author.status}
{site.author.status} diff --git a/src/lib/config/site.ts b/src/lib/config/site.ts index 287687d4..8643437b 100644 --- a/src/lib/config/site.ts +++ b/src/lib/config/site.ts @@ -9,6 +9,7 @@ export const site: SiteConfig = { description: 'Tech / Code / Random Life', author: { name: '酸橘汁腌鱼', + avatar: '/assets/avatar.jpg', status: '🖤', bio: ' Code / Tech
Living a Random Life ', metadata: [ diff --git a/src/lib/types/site.ts b/src/lib/types/site.ts index 68276ed1..0426e624 100644 --- a/src/lib/types/site.ts +++ b/src/lib/types/site.ts @@ -15,12 +15,7 @@ export type SiteConfig = { description?: string /** site keywords. `` */ keywords?: string[] - author: Omit & { - /** - * @deprecated - * @see `$lib/components/index_profile.svelte` - */ - avatar?: never + author: Omit & { status?: string bio?: string metadata?: (