forked from zstar1003/FreeHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (52 loc) · 2.11 KB
/
index.html
File metadata and controls
59 lines (52 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FreeHub - 优质免费产品的聚集地</title>
<meta name="description" content="FreeHub 是一个分享优质免费产品的平台" />
<!-- RSS Feeds -->
<link rel="alternate" type="application/rss+xml" title="FreeHub - 全部内容 (中文)" href="/FreeHub/rss/all.xml" />
<link rel="alternate" type="application/rss+xml" title="FreeHub - All Content (English)" href="/FreeHub/rss/all-en.xml" />
<link rel="alternate" type="application/rss+xml" title="FreeHub - AI新闻 (中文)" href="/FreeHub/rss/ai-news.xml" />
<link rel="alternate" type="application/rss+xml" title="FreeHub - AI News (English)" href="/FreeHub/rss/ai-news-en.xml" />
<script>
// 防止暗色主题闪烁,在页面加载前应用主题
(function() {
const theme = localStorage.getItem('theme');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (theme === 'dark' || (!theme && prefersDark)) {
document.documentElement.classList.add('dark');
}
})();
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SG66DVYM4B"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-SG66DVYM4B');
</script>
<style>
/* 主题切换动画 */
html {
transition: background-color 0.3s ease;
}
body,
#root,
[class*="bg-"],
[class*="text-"],
[class*="border-"] {
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>