Skip to content
Permalink
Browse files

Prevent infinite loop when checking EXTRA_HEAD_DATA

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 13, 2017
1 parent 55f6670 commit f06ef0c613148cf2533efa5fdc0af793b0857dc1
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/nikola.py
@@ -830,7 +830,7 @@ def __init__(self, **config):

# Detect manually added KaTeX CSS (#2715/#2717)
# TODO: remove on v8
if 'katex.min.css' in self.config.get('EXTRA_HEAD_DATA', ''):
if any('katex.min.css' in v for v in self.config['EXTRA_HEAD_DATA'].values.values()):
utils.LOGGER.warn("KaTeX CSS is now added by Nikola whenever needed (if your theme supports it). Please remove katex.min.css from EXTRA_HEAD_DATA in conf.py.")

# Handle old plugin names (from before merging the taxonomy PR #2535)

0 comments on commit f06ef0c

Please sign in to comment.
You can’t perform that action at this time.