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 = { 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, }