Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 articleSort 设置文章封面逻辑不一致的问题 #194

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

theWorkFsz
Copy link
Contributor

article 模板中设置文章封面的逻辑和 index 页面最近文章 L31,不一致。

因此,当 post cover 设置如下时

cover
  - img_url

index 页可以正常渲染,而 article 中 src 实际上被传入了一个数组,因此无法正确读取图片 url。

修改 articleSort 逻辑保证两处渲染逻辑一致

@jerryc127
Copy link
Owner

感谢

@jerryc127 jerryc127 merged commit dad6fdb into jerryc127:dev Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants