diff --git a/src/api.ts b/src/api.ts index fd4e51d..947400f 100644 --- a/src/api.ts +++ b/src/api.ts @@ -43,6 +43,7 @@ export interface Article { wordsCount?: number; readingProgressPercent: number; isArchived: boolean; + archivedAt?: string; } export interface Label { @@ -109,6 +110,7 @@ export const loadArticles = async ( wordsCount isArchived readingProgressPercent + archivedAt highlights { id quote diff --git a/src/settings/template.ts b/src/settings/template.ts index 889af23..cc33f8c 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -87,6 +87,7 @@ export type ArticleView = wordsCount?: number; readLength?: number; state: string; + dateArchived?: string; } | FunctionMap; @@ -251,6 +252,7 @@ export const renderArticleContnet = async ( wordsCount, readLength, state: getArticleState(article), + dateArchived: article.archivedAt, ...functionMap, }; // Build content string based on template