After updating to the latest version of hexo-renderer-pandoc, if I try to generate files using hexo g I encountered the error TypeError: Cannot read property 'template' of undefined (the same as @sli1989's comment here.
It's caused by an missing explicit pandoc configuration like:
After updating to the latest version of hexo-renderer-pandoc, if I try to generate files using
hexo g
I encountered the errorTypeError: Cannot read property 'template' of undefined
(the same as @sli1989's comment here.It's caused by an missing explicit pandoc configuration like:
So I made the workaround by adding a null-checking before using
config.template
.