Skip to content

[carpet] is_mathjax error building my site #203

@andy47

Description

@andy47

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions