Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
由于旧方式需要在每篇文章都得设置一次随机图片 url,文章较多的用户配置比较麻烦,且如果用的随机图片 api 跑路或者挂掉,又需要全部重新替换较为麻烦。本 pr 实现了从blog.config.js里统一配置随机图片 url 。为了避免替换了用户的头像和背景封面图,本 pr 设置了RANDOM_IMAGE_REPLACE_TEXT关键词变量,只有图片原url 里包含关键词才会替换。
本 pr 实现的功能
借助关键词可以实现的一些小feature