From b932add15d89ab854935cd15930c57b3616ea020 Mon Sep 17 00:00:00 2001
From: Mole Shang <135e2@135e2.dev>
Date: Thu, 17 Aug 2023 17:29:45 +0800
Subject: templates: support conditional code-highlighting
---
templates/base.html | 11 +++++++++++
1 file changed, 11 insertions(+)
(limited to 'templates/base.html')
diff --git a/templates/base.html b/templates/base.html
index 793efad..795adb3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -33,9 +33,20 @@
{% if config.extra.seje_darkmode == "auto" %}
+ {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %}
+
+
+ {% endif %}
{% elif config.extra.seje_darkmode == "always" %}
+ {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %}
+
+ {% endif %}
+ {% else %}
+ {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %}
+
+ {% endif %}
{% endif %}
{% if config.extra.seje_vertical_layout %}
--
cgit v1.2.3