From 061434342f89010608b8788afb57df7f5dbfd977 Mon Sep 17 00:00:00 2001 From: sendevia Date: Sun, 9 Nov 2025 16:01:56 +0800 Subject: [PATCH] feat: add impression field to post data structure --- .vitepress/theme/composables/useAllPosts.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vitepress/theme/composables/useAllPosts.ts b/.vitepress/theme/composables/useAllPosts.ts index 4c3922a..03169aa 100644 --- a/.vitepress/theme/composables/useAllPosts.ts +++ b/.vitepress/theme/composables/useAllPosts.ts @@ -3,6 +3,7 @@ import { ref, Ref } from "vue"; type Data = { title: string; description?: string; + impression?: string; date?: string; timestamp?: number; url: string; @@ -68,6 +69,7 @@ export function useAllPosts(asRef = false) { timestamp, url, content: typeof content === "string" ? content : undefined, + impression: frontmatter.impression, }; return po;