From f37574be6f82c3f3935a0b17b0234452e34d71bb Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Sat, 25 Feb 2023 01:18:10 +0800 Subject: [PATCH] update a11y #153 --- layouts/_default/list.html | 3 ++- layouts/partials/header.html | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9faad22..99e2adc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -28,6 +28,7 @@ {{ or site.Params.name site.Title }} {{ end }} @@ -50,7 +51,7 @@ - + {{ .Title }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6e406cb..a7e6b9c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,13 +6,15 @@ >{{ site.Title }} + class="btn-dark text-[0] ml-6 h-6 w-6 shrink-0 cursor-pointer {{ if site.Params.monoDarkIcon }}[background:url(./theme.svg)_left_center/cover_no-repeat] dark:invert{{ else }}[background:url(./theme.png)_left_center/_auto_theme('spacing.6')_no-repeat] [transition:_background-position_0.4s_steps(5)]{{ end }} dark:[background-position:right]" + >Dark + > {{ $bg_color := $.Scratch.Get "bg_color" }}