✨ feat: allow setting the default theme
Used as fallback when JS is disabled and `theme_switcher` is enabled. If `default_theme` is unset, it defaults to "light". Used as single theme when `theme_switcher` is disabled.
This commit is contained in:
@@ -9,7 +9,10 @@
|
||||
{% import "macros/add_comments.html" as macros_add_comments %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ lang }}">
|
||||
<html lang="{{ lang }}" {% if config.extra.default_theme -%}
|
||||
data-theme="{{config.extra.default_theme}}"
|
||||
{%- endif -%}>
|
||||
|
||||
{% include "partials/header.html" %}
|
||||
|
||||
<body>
|
||||
|
Reference in New Issue
Block a user