Navigation Menu

Skip to content

Commit

Permalink
Prevent infinite loop when checking EXTRA_HEAD_DATA
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 13, 2017
1 parent 55f6670 commit f06ef0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -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)
Expand Down

0 comments on commit f06ef0c

Please sign in to comment.