diff --git a/src/components/LightDarkSwitch.svelte b/src/components/LightDarkSwitch.svelte
index 50f0906..70595d7 100644
--- a/src/components/LightDarkSwitch.svelte
+++ b/src/components/LightDarkSwitch.svelte
@@ -11,8 +11,8 @@ import {
import { onMount } from "svelte";
import type { LIGHT_DARK_MODE } from "@/types/config.ts";
-const seq: LIGHT_DARK_MODE[] = [LIGHT_MODE, DARK_MODE, AUTO_MODE];
-let mode: LIGHT_DARK_MODE = $state(AUTO_MODE);
+const seq: LIGHT_DARK_MODE[] = [LIGHT_MODE, DARK_MODE];
+let mode: LIGHT_DARK_MODE = LIGHT_MODE;
onMount(() => {
mode = getStoredTheme();
@@ -66,9 +66,6 @@ function hidePanel() {
diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro
index a7a7143..51e7982 100644
--- a/src/components/PostCard.astro
+++ b/src/components/PostCard.astro
@@ -7,6 +7,7 @@ import { i18n } from "../i18n/translation";
import { getDir } from "../utils/url-utils";
import ImageWrapper from "./misc/ImageWrapper.astro";
import PostMetadata from "./PostMeta.astro";
+import { umamiConfig } from "../config";
interface Props {
class?: string;
@@ -64,14 +65,15 @@ const { remarkPluginFrontmatter } = await entry.render();
{ description || remarkPluginFrontmatter.excerpt }
-
+
+
-
- {remarkPluginFrontmatter.words} {" " + i18n(remarkPluginFrontmatter.words === 1 ? I18nKey.wordCount : I18nKey.wordsCount)}
-
+
{remarkPluginFrontmatter.words} {" " + i18n(I18nKey.wordsCount)}
+
|
+
{remarkPluginFrontmatter.minutes} {" " + i18n(I18nKey.minutesCount)}
|
- {remarkPluginFrontmatter.minutes} {" " + i18n(remarkPluginFrontmatter.minutes === 1 ? I18nKey.minuteCount : I18nKey.minutesCount)}
+ 加载中...
@@ -106,5 +108,72 @@ const { remarkPluginFrontmatter } = await entry.render();