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

[carpet] is_mathjax error building my site #203

Open
andy47 opened this issue Jul 17, 2021 · 3 comments
Open

[carpet] is_mathjax error building my site #203

andy47 opened this issue Jul 17, 2021 · 3 comments

Comments

@andy47
Copy link

andy47 commented Jul 17, 2021

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 exec_template
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
Copy link
Author

andy47 commented Jul 17, 2021

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

@Kwpolska
Copy link
Member

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
Copy link

maphew commented Jan 29, 2023

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?

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

No branches or pull requests

3 participants