diff --git a/app/templates/base.html b/app/templates/base.html index 5498a990..ad4cdf76 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -43,7 +43,7 @@ {% if markdown_editor %} {% endif %} - {% if theme() %} + {% if theme() and file_exists('app/templates/themes/' + theme() + '/styles.css') %} {% endif %} {% endblock %} @@ -236,6 +236,9 @@ {% if markdown_editor and not low_bandwidth %} {% endif %} + {% if theme() and file_exists('app/templates/themes/' + theme() + '/scripts.js') %} +