- {remarkPluginFrontmatter.words} {" " + i18n(remarkPluginFrontmatter.words === 1 ? I18nKey.wordCount : I18nKey.wordsCount)}
+
+
+
+
+ {remarkPluginFrontmatter.words} {i18n(remarkPluginFrontmatter.words === 1 ? I18nKey.wordCount : I18nKey.wordsCount)}
+
+
+
+ {remarkPluginFrontmatter.minutes} {i18n(remarkPluginFrontmatter.minutes === 1 ? I18nKey.minuteCount : I18nKey.minutesCount)}
+
+
+
+ --
-
|
-
- {remarkPluginFrontmatter.minutes} {" " + i18n(remarkPluginFrontmatter.minutes === 1 ? I18nKey.minuteCount : I18nKey.minutesCount)}
+
+
+ --
@@ -107,4 +125,152 @@ const { remarkPluginFrontmatter } = await entry.render();
+
+
diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro
index 7fdfcb8190..2687761c44 100644
--- a/src/pages/posts/[...slug].astro
+++ b/src/pages/posts/[...slug].astro
@@ -8,12 +8,20 @@ import MainGridLayout from "@layouts/MainGridLayout.astro";
import { getSortedPosts } from "@utils/content-utils";
import { getDir, getPostUrlBySlug } from "@utils/url-utils";
import { Icon } from "astro-icon/components";
-import { licenseConfig } from "src/config";
+import { licenseConfig, umamiConfig } from "src/config";
import ImageWrapper from "../../components/misc/ImageWrapper.astro";
import PostMetadata from "../../components/PostMeta.astro";
import { profileConfig, siteConfig } from "../../config";
import { formatDateToYYYYMMDD } from "../../utils/date-utils";
+// Pass config to client
+const statsConfig = {
+ enable: umamiConfig.enable,
+ baseUrl: umamiConfig.baseUrl,
+ shareId: umamiConfig.shareId,
+ timezone: umamiConfig.timezone,
+};
+
export async function getStaticPaths() {
const blogEntries = await getSortedPosts();
return blogEntries.map((entry) => ({
@@ -51,24 +59,6 @@ const jsonLd = {
-
-
-
-
-
-
-
{remarkPluginFrontmatter.words} {" " + i18n(I18nKey.wordsCount)}
-
-
-
-
-
-
- {remarkPluginFrontmatter.minutes} {" " + i18n(remarkPluginFrontmatter.minutes === 1 ? I18nKey.minuteCount : I18nKey.minutesCount)}
-
-
-
-
- {!entry.data.image &&
}
+
+
+
+
+ {remarkPluginFrontmatter.words} {i18n(I18nKey.wordsCount)}
+
+
+
+ {remarkPluginFrontmatter.minutes} {i18n(remarkPluginFrontmatter.minutes === 1 ? I18nKey.minuteCount : I18nKey.minutesCount)}
+
+
+
+ --
+
+
+
+ --
+
+
+
+ {!entry.data.image &&
}
+
{entry.data.image &&
@@ -134,3 +145,182 @@ const jsonLd = {
+
+
+
+