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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user