Auto dark mode

This commit is contained in:
Sodbileg Gansukh
2022-05-27 14:46:30 +08:00
parent 0e78d9ed40
commit 9ebb26559a
5 changed files with 165 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{@site.locale}}"{{#match @custom.color_scheme "Dark"}} class="dark-mode"{{/match}}>
<html lang="{{@site.locale}}"{{#match @custom.color_scheme "Dark"}} class="dark-mode"{{else match @custom.color_scheme "Auto"}} class="auto-color"{{/match}}>
<head>
{{!-- Basic meta - advanced meta is output with {ghost_head} below --}}