From efa31f626ca7063f603512ba0416a48db114ece1 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 17 Jan 2024 10:09:14 +0800 Subject: [PATCH 1/2] fix: add updatedAt variable to the article template to get the last updated timestamp of the library item (#176) --- src/settings/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings/template.ts b/src/settings/template.ts index 322f8c5..855fbae 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -77,6 +77,7 @@ export type ArticleView = state: string dateArchived?: string image?: string + updatedAt: string } | FunctionMap @@ -252,6 +253,7 @@ export const renderArticleContnet = async ( state: getArticleState(article), dateArchived: article.archivedAt, image: article.image, + updatedAt: article.updatedAt, ...functionMap, } From 946d8780c603d168cfc5af03c7628f788701039d Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Tue, 30 Jan 2024 17:50:52 +0800 Subject: [PATCH 2/2] fix: allow using image in the basic front matter settings (#187) --- src/settings/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings/index.ts b/src/settings/index.ts index 59cde7d..773e7a5 100644 --- a/src/settings/index.ts +++ b/src/settings/index.ts @@ -17,6 +17,7 @@ export const FRONT_MATTER_VARIABLES = [ 'read_length', 'state', 'date_archived', + 'image' ] export const DEFAULT_SETTINGS: OmnivoreSettings = {