Skip to content

Commit 491228f

Browse files
author
osvenskan
committed
fix: allow PLUGINS to be None
change code to not assume PLUGINS is an iterable, and allow for its default value of None
1 parent 9329879 commit 491228f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
{% block head_links %}
8-
{% if 'assets' in PLUGINS %}
8+
{% if PLUGINS and 'assets' in PLUGINS %}
99
{% include '_includes/minify_css.html' with context %}
1010
{% else %}
1111
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/elegant.prod.9e9d5ce754.css" media="screen">

templates/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% endblock content %}
4040

4141
{% block script %}
42-
{% if 'tipue_search' in PLUGINS %}
42+
{% if PLUGINS and 'tipue_search' in PLUGINS %}
4343
<script src="{{ SITEURL }}/tipuesearch_content.js"></script>
4444
{% endif %}
4545
{{ super() }}

0 commit comments

Comments
 (0)