1
0
mirror of https://github.com/sendevia/website.git synced 2026-03-06 15:42:34 +08:00

feat: add impression field to post data structure

This commit is contained in:
2025-11-09 16:01:56 +08:00
parent 8dfd0782f9
commit 061434342f

View File

@@ -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;