diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-02-12 10:48:04 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-02-12 10:48:04 +0530 |
| commit | 6f8edf1ffa88129a26eddf508e5d1833b86e486e (patch) | |
| tree | 78c67592ce4573916f24d54983cf3642210e84a3 /layouts | |
| parent | 034da041800de60cfdfa6dbefc00f479f7c009cb (diff) | |
change theme-switch from 'a' to 'button'
and refactor
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d91cc6f..301367c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -61,7 +61,7 @@ {{- end }} <span class="logo-switches"> {{- if (not .Site.Params.disableThemeToggle) }} - <a id="theme-toggle" accesskey="t" title="(Alt + T)"> + <button id="theme-toggle" accesskey="t" title="(Alt + T)"> <svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> @@ -80,7 +80,7 @@ <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line> <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line> </svg> - </a> + </button> {{- end}} {{ $lang := .Lang}} {{ $separator := or .Title (not .Site.Params.disableThemeToggle)}} |
