Skip to content

Commit 6f9bfcf

Browse files
author
wu_jia_tong
committed
seo: add sitemap
1 parent 5ebd190 commit 6f9bfcf

File tree

4 files changed

+288
-0
lines changed

4 files changed

+288
-0
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<html>
22
<head>
3+
<meta charset="UTF-8">
34
<meta http-equiv="refresh" content="0; url=./www/home.html" />
5+
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
46
</head>
57
<body>
68
<p>If you are not redirected, <a href="./www/home.html">click here</a>.</p>
9+
<p><a href="./sitemap.html">站点地图</a></p>
710
</body>
811
</html>

robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: /
3+
Sitemap: https://caiooooo.github.io/sitemap.xml

sitemap.html

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<!DOCTYPE html>
2+
<html lang="zh">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>站点地图 - 寻声 | 打破第四面墙</title>
8+
<link rel="shortcut icon" href="www/img/logo.png">
9+
<link rel="stylesheet" href="www/css/style.css">
10+
<link rel="stylesheet" href="www/css/font.css">
11+
<style>
12+
.sitemap-container {
13+
max-width: 1200px;
14+
margin: 0 auto;
15+
padding: 20px;
16+
font-family: 'myfont', sans-serif;
17+
}
18+
.sitemap-section {
19+
margin-bottom: 30px;
20+
}
21+
.sitemap-section h2 {
22+
border-bottom: 2px solid #3498db;
23+
padding-bottom: 10px;
24+
color: #2c3e50;
25+
}
26+
.sitemap-list {
27+
list-style-type: none;
28+
padding-left: 20px;
29+
}
30+
.sitemap-list li {
31+
margin: 10px 0;
32+
}
33+
.sitemap-list a {
34+
text-decoration: none;
35+
color: #3498db;
36+
transition: color 0.3s;
37+
}
38+
.sitemap-list a:hover {
39+
color: #2980b9;
40+
text-decoration: underline;
41+
}
42+
.sitemap-header {
43+
text-align: center;
44+
margin-bottom: 40px;
45+
}
46+
.sitemap-header img {
47+
max-width: 100px;
48+
}
49+
.sitemap-header h1 {
50+
margin-top: 10px;
51+
color: #2c3e50;
52+
}
53+
.sitemap-description {
54+
text-align: center;
55+
margin-bottom: 30px;
56+
color: #7f8c8d;
57+
}
58+
@media (max-width: 768px) {
59+
.sitemap-container {
60+
padding: 10px;
61+
}
62+
}
63+
</style>
64+
</head>
65+
<body>
66+
<div class="sitemap-container">
67+
<div class="sitemap-header">
68+
<img src="www/img/logo.png" alt="寻声 Logo">
69+
<h1>寻声网站地图</h1>
70+
</div>
71+
72+
<div class="sitemap-description">
73+
<p>欢迎访问寻声网站地图,这里提供了网站所有页面的导航链接,帮助您快速找到所需内容。</p>
74+
</div>
75+
76+
<div class="sitemap-section">
77+
<h2>主要页面</h2>
78+
<ul class="sitemap-list">
79+
<li><a href="/">首页</a> - 网站主入口</li>
80+
<li><a href="/www/home.html">主页</a> - 网站主页面</li>
81+
<li><a href="/www/index.html">登录/注册</a> - 用户登录和注册页面</li>
82+
<li><a href="/www/designIdea.html">设计网站</a> - 设计相关内容</li>
83+
<li><a href="/www/projects.html">个人项目</a> - 项目展示页面</li>
84+
<li><a href="/www/photoIdea.html">足迹地图</a> - 地理位置和足迹展示</li>
85+
<li><a href="/www/createIdea.html">个人博客</a> - 博客入口</li>
86+
<li><a href="/www/aboutUs.html">联系作者</a> - 关于作者和联系方式</li>
87+
</ul>
88+
</div>
89+
90+
<div class="sitemap-section">
91+
<h2>功能页面</h2>
92+
<ul class="sitemap-list">
93+
<li><a href="/www/chat.html">聊天页面</a> - 在线聊天功能</li>
94+
<li><a href="/www/videoRoom.html">视频房间</a> - 视频通话功能</li>
95+
<li><a href="/www/log.html">日志页面</a> - 系统日志</li>
96+
<li><a href="/www/404.html">404页面</a> - 页面未找到</li>
97+
</ul>
98+
</div>
99+
100+
<div class="sitemap-section">
101+
<h2>博客文章</h2>
102+
<ul class="sitemap-list">
103+
<li><a href="/www/blog/[星露谷]解决茶苗bug问题.md">星露谷解决茶苗bug问题</a></li>
104+
<li><a href="/www/blog/[第一行代码]Jetpack篇——LiveData,Transformations无法导入.md">第一行代码Jetpack篇——LiveData,Transformations无法导入</a></li>
105+
<li><a href="/www/blog/bomb_lab phase5最详细解析!.md">bomb_lab phase5最详细解析!</a></li>
106+
<li><a href="/www/blog/kruskal重构树(以ICPC上海 2021 H.Life is a Game 为例).md">kruskal重构树(以ICPC上海 2021 H.Life is a Game 为例)</a></li>
107+
<li><a href="/www/blog/packet tracer路由器配置chap认证.md">packet tracer路由器配置chap认证</a></li>
108+
<li><a href="/www/blog/使用nodejs子域名搭建jupyterlab时的关键配置.md">使用nodejs子域名搭建jupyterlab时的关键配置</a></li>
109+
<li><a href="/www/blog/使用sigsuspend完成csapp的shellLab中的waitfg(pid_t pid)函数.md">使用sigsuspend完成csapp的shellLab中的waitfg(pid_t pid)函数</a></li>
110+
<li><a href="/www/blog/混合编程加速PythonHttp请求速度.md">混合编程加速PythonHttp请求速度</a></li>
111+
</ul>
112+
</div>
113+
114+
<div class="sitemap-section">
115+
<h2>资源</h2>
116+
<ul class="sitemap-list">
117+
<li><a href="/sitemap.xml">XML站点地图</a> - 供搜索引擎使用的XML格式站点地图</li>
118+
<li><a href="/robots.txt">Robots.txt</a> - 搜索引擎爬虫指南</li>
119+
</ul>
120+
</div>
121+
122+
<footer style="text-align: center; margin-top: 50px; color: #7f8c8d; font-size: 0.9em;">
123+
<p>© 2024 寻声 - 打破第四面墙 | 站点地图最后更新时间: 2024-03-04</p>
124+
</footer>
125+
</div>
126+
</body>
127+
</html>

sitemap.xml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<!-- 主页 -->
4+
<url>
5+
<loc>https://caiooooo.github.io/</loc>
6+
<lastmod>2024-03-04</lastmod>
7+
<changefreq>weekly</changefreq>
8+
<priority>1.0</priority>
9+
</url>
10+
11+
<!-- 首页 -->
12+
<url>
13+
<loc>https://caiooooo.github.io/www/home.html</loc>
14+
<lastmod>2024-03-04</lastmod>
15+
<changefreq>weekly</changefreq>
16+
<priority>1.0</priority>
17+
</url>
18+
19+
<!-- 登录/注册页 -->
20+
<url>
21+
<loc>https://caiooooo.github.io/www/index.html</loc>
22+
<lastmod>2024-03-04</lastmod>
23+
<changefreq>monthly</changefreq>
24+
<priority>0.8</priority>
25+
</url>
26+
27+
<!-- 设计网站 -->
28+
<url>
29+
<loc>https://caiooooo.github.io/www/designIdea.html</loc>
30+
<lastmod>2024-03-04</lastmod>
31+
<changefreq>monthly</changefreq>
32+
<priority>0.8</priority>
33+
</url>
34+
35+
<!-- 个人项目 -->
36+
<url>
37+
<loc>https://caiooooo.github.io/www/projects.html</loc>
38+
<lastmod>2024-03-04</lastmod>
39+
<changefreq>monthly</changefreq>
40+
<priority>0.8</priority>
41+
</url>
42+
43+
<!-- 足迹地图 -->
44+
<url>
45+
<loc>https://caiooooo.github.io/www/photoIdea.html</loc>
46+
<lastmod>2024-03-04</lastmod>
47+
<changefreq>monthly</changefreq>
48+
<priority>0.7</priority>
49+
</url>
50+
51+
<!-- 个人博客 -->
52+
<url>
53+
<loc>https://caiooooo.github.io/www/createIdea.html</loc>
54+
<lastmod>2024-03-04</lastmod>
55+
<changefreq>weekly</changefreq>
56+
<priority>0.8</priority>
57+
</url>
58+
59+
<!-- 联系作者 -->
60+
<url>
61+
<loc>https://caiooooo.github.io/www/aboutUs.html</loc>
62+
<lastmod>2024-03-04</lastmod>
63+
<changefreq>monthly</changefreq>
64+
<priority>0.7</priority>
65+
</url>
66+
67+
<!-- 聊天页面 -->
68+
<url>
69+
<loc>https://caiooooo.github.io/www/chat.html</loc>
70+
<lastmod>2024-03-04</lastmod>
71+
<changefreq>monthly</changefreq>
72+
<priority>0.6</priority>
73+
</url>
74+
75+
<!-- 视频房间 -->
76+
<url>
77+
<loc>https://caiooooo.github.io/www/videoRoom.html</loc>
78+
<lastmod>2024-03-04</lastmod>
79+
<changefreq>monthly</changefreq>
80+
<priority>0.6</priority>
81+
</url>
82+
83+
<!-- 日志页面 -->
84+
<url>
85+
<loc>https://caiooooo.github.io/www/log.html</loc>
86+
<lastmod>2024-03-04</lastmod>
87+
<changefreq>monthly</changefreq>
88+
<priority>0.5</priority>
89+
</url>
90+
91+
<!-- 404页面 -->
92+
<url>
93+
<loc>https://caiooooo.github.io/www/404.html</loc>
94+
<lastmod>2024-03-04</lastmod>
95+
<changefreq>yearly</changefreq>
96+
<priority>0.3</priority>
97+
</url>
98+
99+
<!-- 博客文章 -->
100+
<url>
101+
<loc>https://caiooooo.github.io/www/blog/[星露谷]解决茶苗bug问题.md</loc>
102+
<lastmod>2024-03-04</lastmod>
103+
<changefreq>yearly</changefreq>
104+
<priority>0.6</priority>
105+
</url>
106+
107+
<url>
108+
<loc>https://caiooooo.github.io/www/blog/[第一行代码]Jetpack篇——LiveData,Transformations无法导入.md</loc>
109+
<lastmod>2024-03-04</lastmod>
110+
<changefreq>yearly</changefreq>
111+
<priority>0.6</priority>
112+
</url>
113+
114+
<url>
115+
<loc>https://caiooooo.github.io/www/blog/bomb_lab phase5最详细解析!.md</loc>
116+
<lastmod>2024-03-04</lastmod>
117+
<changefreq>yearly</changefreq>
118+
<priority>0.6</priority>
119+
</url>
120+
121+
<url>
122+
<loc>https://caiooooo.github.io/www/blog/kruskal重构树(以ICPC上海 2021 H.Life is a Game 为例).md</loc>
123+
<lastmod>2024-03-04</lastmod>
124+
<changefreq>yearly</changefreq>
125+
<priority>0.6</priority>
126+
</url>
127+
128+
<url>
129+
<loc>https://caiooooo.github.io/www/blog/packet tracer路由器配置chap认证.md</loc>
130+
<lastmod>2024-03-04</lastmod>
131+
<changefreq>yearly</changefreq>
132+
<priority>0.6</priority>
133+
</url>
134+
135+
<url>
136+
<loc>https://caiooooo.github.io/www/blog/使用nodejs子域名搭建jupyterlab时的关键配置.md</loc>
137+
<lastmod>2024-03-04</lastmod>
138+
<changefreq>yearly</changefreq>
139+
<priority>0.6</priority>
140+
</url>
141+
142+
<url>
143+
<loc>https://caiooooo.github.io/www/blog/使用sigsuspend完成csapp的shellLab中的waitfg(pid_t pid)函数.md</loc>
144+
<lastmod>2024-03-04</lastmod>
145+
<changefreq>yearly</changefreq>
146+
<priority>0.6</priority>
147+
</url>
148+
149+
<url>
150+
<loc>https://caiooooo.github.io/www/blog/混合编程加速PythonHttp请求速度.md</loc>
151+
<lastmod>2024-03-04</lastmod>
152+
<changefreq>yearly</changefreq>
153+
<priority>0.6</priority>
154+
</url>
155+
</urlset>

0 commit comments

Comments
 (0)