mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 01:20:06 -04:00
docs(pages): 获得了一个新的免费 .dev 域名
2. del(theme): 删除周日知更鸟主题的代码部分,资源文件未删除 3. chore(profile): 左侧个人资料 Profile 更换音乐:茉子の日常 4. chore(config): 删除 navbar 的“仓库信息”,重新加入 Home 按钮 5. docs(pages): 更新相关文档页面内容 6. fix(css): 修复复制按钮未正确显示的问题 7. chore(footer): 新增茶备案号 2025080144
This commit is contained in:
@@ -70,7 +70,6 @@ const bannerOffsetByPosition = {
|
||||
};
|
||||
const bannerOffset =
|
||||
bannerOffsetByPosition[siteConfig.banner.position || "center"];
|
||||
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -99,12 +98,11 @@ const bannerOffset =
|
||||
<meta property="twitter:url" content={Astro.url}>
|
||||
<meta name="twitter:title" content={pageTitle}>
|
||||
<meta name="twitter:description" content={description || pageTitle}>
|
||||
|
||||
|
||||
<meta id="theme-color-meta" name="theme-color" content="#48823b" />
|
||||
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<meta id="theme-color-meta" name="theme-color" content="#48823b" />
|
||||
|
||||
{favicons.map(favicon => (
|
||||
<link rel="icon"
|
||||
href={favicon.src.startsWith('/') ? url(favicon.src) : favicon.src}
|
||||
@@ -133,18 +131,9 @@ const bannerOffset =
|
||||
}
|
||||
|
||||
// Load the hue from local storage
|
||||
const currentDay = new Date().getDay();
|
||||
const hue = currentDay === 0 ? 290 : (localStorage.getItem('hue') || configHue);
|
||||
//const hue = localStorage.getItem('hue') || configHue;
|
||||
const hue = localStorage.getItem('hue') || configHue;
|
||||
document.documentElement.style.setProperty('--hue', hue);
|
||||
|
||||
// 设置主题色(新增这部分)
|
||||
const themeColor = currentDay === 0 ? '#9e8eef' : '#48823b';
|
||||
const metaThemeColor = document.getElementById('theme-color-meta');
|
||||
if (metaThemeColor) {
|
||||
metaThemeColor.setAttribute('content', themeColor);
|
||||
}
|
||||
|
||||
// calculate the --banner-height-extend, which needs to be a multiple of 4 to avoid blurry text
|
||||
let offset = Math.floor(window.innerHeight * (BANNER_HEIGHT_EXTEND / 100));
|
||||
offset = offset - offset % 4;
|
||||
|
||||
Reference in New Issue
Block a user