update title url
This commit is contained in:
parent
bc9c24403f
commit
0fdcdf371b
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
<div class="relative z-50 mr-auto flex items-center">
|
<div class="relative z-50 mr-auto flex items-center">
|
||||||
<a
|
<a
|
||||||
class="-translate-x-[1px] -translate-y-[1px] text-2xl font-semibold"
|
class="-translate-x-[1px] -translate-y-[1px] text-2xl font-semibold"
|
||||||
href="{{ `/` | absURL }}"
|
href="{{ `` | absURL }}"
|
||||||
>{{ site.Title }}</a
|
>{{ site.Title }}</a
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
// dark theme
|
// dark theme
|
||||||
const metaTheme = document.querySelector('meta[name="theme-color"]');
|
const metaTheme = document.querySelector('meta[name="theme-color"]');
|
||||||
const lightBg = "{{ $.Scratch.Get `bg_color` }}".replace(/"/g, '');
|
const lightBg = '{{ $.Scratch.Get `bg_color` }}'.replace(/"/g, '');
|
||||||
const setDark = (isDark) => {
|
const setDark = (isDark) => {
|
||||||
metaTheme.setAttribute('content', isDark ? '#000' : lightBg);
|
metaTheme.setAttribute('content', isDark ? '#000' : lightBg);
|
||||||
htmlClass[isDark ? 'add' : 'remove']('dark');
|
htmlClass[isDark ? 'add' : 'remove']('dark');
|
||||||
|
|
Loading…
Reference in a new issue