Skip to content

Commit f6c781c

Browse files
committed
Fix thumbnail url replacement error
1 parent 8ceb220 commit f6c781c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crawler/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ class Crawler {
113113

114114
if (this.withDetail) {
115115
if (post.thumbnail) {
116-
this.getThumbnailImage(post.thumbnail);
117-
frontmatter += `thumbnail: ${post.thumbnail}\n`;
116+
const thumbnail_file_src = this.getThumbnailImage(post.thumbnail);
117+
118+
frontmatter += `thumbnail: ${thumbnail_file_src}\n`;
118119
}
119120

120121
if (post.series) {

0 commit comments

Comments
 (0)