Khan / engblog

KA Engineering blog.
http://engineering.khanacademy.org
Other
29 stars 20 forks source link

Don't break when there's no upcoming post #37

Closed wchargin closed 9 years ago

wchargin commented 9 years ago

Summary: ~~I don't think there's anyone actually after me in the publish queue, so when I publish my post tomorrow I'll set upcoming_post = None. That currently breaks the sidebar. This patch fixes that.~~

edit: there is a next post, but this patch is probably still good!

I'm PRing this just to get the Travis build. If there are no objections by the time I'm ready to publish my post, I'll just merge this in with that commit.

Test Plan: At the bottom of src/info.py, change the value of upcoming_post to None. Build and make sure that the app doesn't break and that no "upcoming post" is displayed in the sidebar.

Reviewers: @brownhead