Skip to content

Commit

Permalink
actually remove darkmode from empty templates for real this time
Browse files Browse the repository at this point in the history
SamuelmdLow committed Jan 31, 2024
1 parent dad08ad commit eeeac2e
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion article/templates/article/article_page_empty.html
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
{% load video_filters %}

{% block root %}{%endblock%}
{% block color-scheme %}normal{%endblock%}
{% block darkmode %}{%endblock%}

{% block stylesheet %}
{% if self.styles.all|length == 0 %}
4 changes: 3 additions & 1 deletion ubyssey/templates/ubyssey/base.html
Original file line number Diff line number Diff line change
@@ -10,8 +10,10 @@
<meta charset="utf-8" />
<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
{% block darkmode %}
<script src="{% static 'ubyssey/js/darkmode.js' %}" type="text/javascript"></script>
<meta name="color-scheme" content="{%block color-scheme%}{{mode}}{%endblock%}">
<meta name="color-scheme" content="{{mode}}">
{% endblock %}
{% include 'ubyssey/meta_tags.html' %}

{% block stylesheet %}

0 comments on commit eeeac2e

Please sign in to comment.