renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

Navigation bar Lisp errors, produced on some archive pages #57

Closed limist closed 11 years ago

limist commented 11 years ago

I'm seeing a bug on some pages produced by the blog_index_category|month|year.html templated pages. Specifically, the links pointing to recent blog category posts within the Navigation snippet sometimes evaluate incorrectly to Lisp errors: the link will have something like,

Lisp error in nil: (error ob:post-htmlfile accessing a non-ob:post)

...while the anchor text looks like,

Lisp error in nil: (error ob:post-title accessing a non-ob:post)

You can see this live at the o-blog demo site, click on the dropdown navigation menu and look under Tips: http://renard.github.com/o-blog/tips/2012/08/index.html

On the o-blog demo site, not all archive pages are affected, only month-level. But on my local site, I'm seeing this error on category, year, and month archive pages.

limist commented 11 years ago

Thanks for the quick fix - the problem in archive pages is gone!

But strangely, a similar problem is now in the debug.html page, where the navigation links referencing posts shows the same error. I see this on my local o-blog debug pages, and you can also see this online:

http://renard.github.com/o-blog/debug.html