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 f670fbe commit 0941dc2
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

1 comment on commit 0941dc2

@a-stein
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we be able to use the image in Front Matter?

Please sign in to comment.