Skip to content

Commit

Permalink
Force light theme on first visit if the theme modal is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Jun 25, 2024
1 parent 0d10436 commit 656e67b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
{% get_settings %}
<!DOCTYPE html>
<html lang="{% get_current_language as LANGUAGE_CODE %}{{ LANGUAGE_CODE }}"
data-fr-scheme="system"
{% if settings.content_manager.CmsDsfrConfig.theme_modale_button %} data-fr-scheme="system" {% else %} data-fr-scheme="light" {% endif %}
{% if settings.content_manager.CmsDsfrConfig.mourning %}data-fr-mourning{% endif %}>

<head>
<meta charset="utf-8" />
<meta name="viewport"
Expand Down

0 comments on commit 656e67b

Please sign in to comment.