getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
70 stars 51 forks source link

[carpet] `is_mathjax` error building my site #203

Open andy47 opened 3 years ago

andy47 commented 3 years ago

Hi, I have a problem with the carpet theme. I installed it following instructions on the theme home page - https://themes.getnikola.com/v7/carpet/

But when I change the THEME setting in my conf.py and try and build my site I get an error message;

File "/Users/andy47/Work/envs/nikola/lib/python3.9/site-packages/mako/runtime.py", line 947, in _exectemplate callable(context, *args, kwargs) File "/Users/andy47/Work/Projects/homepage/cache/.mako.tmp/base.tmpl.py", line 143, in render_body context['self'].content(pageargs) File "/Users/andy47/Work/Projects/homepage/cache/.mako.tmp/story.tmpl.py", line 92, in render_content __M_writer(str(helper.mathjax_script(post))) File "/Users/andy47/Work/Projects/homepage/cache/.mako.tmp/post_helper.tmpl.py", line 196, in render_mathjax_script if post.is_mathjax: AttributeError: 'Post' object has no attribute 'is_mathjax'

It looks to me that there may be a conflict between the carpet theme and the base mako theme but I don't seem to be able to track it down. Can anyone help me work out what's going on and how to fix it?

andy47 commented 3 years ago

Sorry, forgot to say that I'm running Nikola v8.1.3 on Mac OS.

Kwpolska commented 2 years ago

The carpet theme might not be compatible with Nikola v8 — it might still be using old-style math code. It should be updated to ensure it works (and PRs are very welcome!)

maphew commented 1 year ago

Problem seems to still exist, yet carpet is listed with nikola theme -l -u https://themes.getnikola.com/v8/themes.json. Shouldn't it be removed from that list? Is there a method to know what themes are known working with v8?