diff --git a/src/components/ArchivePanel.astro b/src/components/ArchivePanel.astro index 12b9953..7fb180b 100644 --- a/src/components/ArchivePanel.astro +++ b/src/components/ArchivePanel.astro @@ -69,7 +69,7 @@ function formatTag(tag: string[]) {
{group.posts.length} Articles
{group.posts.map(post => ( - +
{Object.keys(getConfig().menu).map((key) => { - return + return })}
- +
- diff --git a/src/components/PostMetadata.astro b/src/components/PostMetadata.astro index b41d0ac..7068dad 100644 --- a/src/components/PostMetadata.astro +++ b/src/components/PostMetadata.astro @@ -34,7 +34,7 @@ const className = Astro.props.class; {(categories && categories.length > 0) && categories.map(category => - } {!hasCover && -
@@ -69,15 +69,15 @@ const commonUrl: string = parts.slice(0, -1).join('/') + '/'; > {p}
- return + return })} - - diff --git a/src/components/widget/CategoriesLink.astro b/src/components/widget/CategoriesLink.astro index 75293fa..7025c21 100644 --- a/src/components/widget/CategoriesLink.astro +++ b/src/components/widget/CategoriesLink.astro @@ -13,7 +13,7 @@ const {categories} = Astro.props; ---
{Object.entries(categories).map(([key, value]) => - {value.name} + {value.name}
{Object.keys(value.children).length > 0 && }
diff --git a/src/components/widget/DisplaySetting.astro b/src/components/widget/DisplaySetting.astro index 5303816..d5797cb 100644 --- a/src/components/widget/DisplaySetting.astro +++ b/src/components/widget/DisplaySetting.astro @@ -2,7 +2,6 @@ import {getConfig} from "../../utils/config-utils"; import {i18n} from "../../i18n/translation"; import I18nKey from "../../i18n/i18nKey"; -const hueSet: number[] = [0, 30, 60, 180, 250, 270, 300, 330, 345]; const enableBanner = getConfig().banner.enable; @@ -21,20 +20,8 @@ const enableBanner = getConfig().banner.enable; {0}
-
- +
diff --git a/src/components/widget/Profile.astro b/src/components/widget/Profile.astro index 3d6576e..8d8391e 100644 --- a/src/components/widget/Profile.astro +++ b/src/components/widget/Profile.astro @@ -12,20 +12,20 @@ const vConf = getConfig(); ---
- +
- +
{vConf.profile.author}
{vConf.profile.subtitle}
{vConf.profile.links.map(item => - + )} diff --git a/src/components/widget/Tags.astro b/src/components/widget/Tags.astro index 46858df..1ad59c1 100644 --- a/src/components/widget/Tags.astro +++ b/src/components/widget/Tags.astro @@ -16,7 +16,7 @@ const isCollapsed = tags.length >= 20;
{tags.map(t => ( - + {t.name} ))} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 12378f2..0ebea5b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -94,8 +94,7 @@ if (title) { class:list={{'banner-home': isHomePage, 'banner-else': !isHomePage}} > - -