Skip to content

Commit

Permalink
fix: allow PLUGINS to be None
Browse files Browse the repository at this point in the history
change code to not assume PLUGINS is an iterable, and allow
for its default value of None
  • Loading branch information
osvenskan committed Sep 8, 2020
1 parent 9329879 commit 491228f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block head_links %}
{% if 'assets' in PLUGINS %}
{% if PLUGINS and 'assets' in PLUGINS %}
{% include '_includes/minify_css.html' with context %}
{% else %}
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/elegant.prod.9e9d5ce754.css" media="screen">
Expand Down
2 changes: 1 addition & 1 deletion templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{% endblock content %}

{% block script %}
{% if 'tipue_search' in PLUGINS %}
{% if PLUGINS and 'tipue_search' in PLUGINS %}
<script src="{{ SITEURL }}/tipuesearch_content.js"></script>
{% endif %}
{{ super() }}
Expand Down

0 comments on commit 491228f

Please sign in to comment.