Skip to content

Commit

Permalink
fix: add image to the variables of article template
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Jan 11, 2024
1 parent b513b09 commit 15d47d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type ArticleView =
readLength?: number
state: string
dateArchived?: string
image?: string
}
| FunctionMap

Expand Down Expand Up @@ -250,6 +251,7 @@ export const renderArticleContnet = async (
readLength,
state: getArticleState(article),
dateArchived: article.archivedAt,
image: article.image,
...functionMap,
}

Expand Down

0 comments on commit 15d47d1

Please sign in to comment.