getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 451 forks source link

`nikola build` fails with `base-jinja` theme and no `COMMENT_SYSTEM` #3569

Closed clayadavis closed 3 years ago

clayadavis commented 3 years ago

Environment

Python Version: 3.9

Nikola Version: master

Operating System: Pop!_OS 21.04

Description:

In the current master (67fe01f44), sites using base-jinja and derived themes can fail to build when no comment system is used. The nikola build command fails with the following exception:

jinja2.exceptions.UndefinedError: 'jinja2.environment.TemplateModule object' has no attribute 'comment_link_script'

Full traceback.

Git bisect suggests this bug was introduced with commit 251a3b2ad09e70a3701c089cee740f472fdccb95

Steps to reproduce