Closed huyingjie closed 6 years ago
@huyingjie Actually, this plugin have a more complicated problem. Sorry , I'll fix this problem someday . Please wait until update this plugin.
This problem can be temporarily avoided with the hexo clean
command. And if you use cache , please delete cache file.
Also, you can judge freely in custom html. Please use popular_posts_json()
tag.
@tea3 hexo clean
does not work.
@huyingjie I see . Which theme do you use ?
Also, could you avoid this issue temporarily with the popular_posts_json() tag ? This tag makes me possible to judge whether there exists posts .
@huyingjie Have you confirmed that the same problem will occur with default theme ?
I want to hide the text "Related Posts" if no posts are returned.
When there is no posts matched,
popular_posts( {} , page )
returnsIt makes me impossible to write
if
statement to judge whether there exists at least related post or not.I think
popular_posts( {} , page )
should return empty string or any value equivalent to empty if no posts are related to the current post.