From 0941dc2cc73933dc40c5f5930776def1e2847c34 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 11 Jan 2024 12:15:26 +0800 Subject: [PATCH] fix: add image to the variables of article template --- src/settings/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings/template.ts b/src/settings/template.ts index 4b739ac..322f8c5 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -76,6 +76,7 @@ export type ArticleView = readLength?: number state: string dateArchived?: string + image?: string } | FunctionMap @@ -250,6 +251,7 @@ export const renderArticleContnet = async ( readLength, state: getArticleState(article), dateArchived: article.archivedAt, + image: article.image, ...functionMap, }