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">
|
||||
<a
|
||||
class="-translate-x-[1px] -translate-y-[1px] text-2xl font-semibold"
|
||||
href="{{ `/` | absURL }}"
|
||||
href="{{ `` | absURL }}"
|
||||
>{{ site.Title }}</a
|
||||
>
|
||||
<div
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
// dark theme
|
||||
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) => {
|
||||
metaTheme.setAttribute('content', isDark ? '#000' : lightBg);
|
||||
htmlClass[isDark ? 'add' : 'remove']('dark');
|
||||
|
|
Loading…
Reference in a new issue