From 2870678819eaf2557926bbbd06c6f283ae4cd4a5 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:40:02 +1300 Subject: [PATCH] theme engine - javascript #19 --- app/templates/base.html | 5 ++++- app/templates/themes/high_contrast/scripts.js | 0 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 app/templates/themes/high_contrast/scripts.js 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') %} +