diff --git a/src/api.ts b/src/api.ts index 9f1db74..9669ed6 100644 --- a/src/api.ts +++ b/src/api.ts @@ -49,6 +49,7 @@ export interface Article { content: string publishedAt?: string url: string + image?: string readAt?: string wordsCount?: number readingProgressPercent: number @@ -112,6 +113,7 @@ export const loadArticles = async ( siteName originalArticleUrl url + image author updatedAt description 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, }