theme engine - javascript #19

This commit is contained in:
rimu 2024-02-07 18:40:02 +13:00
parent 0594dddcac
commit 2870678819
2 changed files with 4 additions and 1 deletions

View file

@ -43,7 +43,7 @@
{% if markdown_editor %}
<link href="{{ url_for('static', filename='js/markdown/downarea.css') }}" type="text/css" rel="stylesheet" />
{% endif %}
{% if theme() %}
{% if theme() and file_exists('app/templates/themes/' + theme() + '/styles.css') %}
<link href="{{ url_for('static', filename='themes/' + theme() + '/styles.css') }}" type="text/css" rel="stylesheet" />
{% endif %}
{% endblock %}
@ -236,6 +236,9 @@
{% if markdown_editor and not low_bandwidth %}
<script type="text/javascript" src="{{ url_for('static', filename='js/markdown/downarea.js') }}"></script>
{% endif %}
{% if theme() and file_exists('app/templates/themes/' + theme() + '/scripts.js') %}
<script src="{{ url_for('static', filename='themes/' + theme() + '/scripts.js') }}" />
{% endif %}
{% block end_scripts %}
{% endblock %}