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

Fixes to handle no published posts #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

jlVidal
Copy link

@jlVidal jlVidal commented Nov 12, 2015

The changes avoid unexpected exceptions on Hexo when there's no posts on the blog, or just drafts.

Fixed if there's no posts, its avoid exceptions.
Fixed if there's no posts, its avoid exceptions.
Mistyped length of posts to handle if there's nothing and avoid exception
@Xuanwo
Copy link

Xuanwo commented Nov 12, 2015

check failed with Template render error: (unknown path) [Line 7, Column 35]

@jlVidal
Copy link
Author

jlVidal commented Nov 12, 2015

I don't know why is not compiling a ternary if, in my computer works fine. Any ideas?

@Xuanwo
Copy link

Xuanwo commented Nov 18, 2015

It looks like you return a empty string, maybe this cause a problem ?
d0a7531#diff-2d50619f126a12162223a89f7b15c54eL7

@michaelowens
Copy link

Still an issue to date

@tomap
Copy link
Contributor

tomap commented Aug 18, 2018

LGTM

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.

4 participants