Repository navigation
Expand file tree
/
Copy pathblog.html
More file actions
176 lines (161 loc) · 7.75 KB
/
Copy pathblog.html
File metadata and controls
176 lines (161 loc) · 7.75 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>博客 — CodeCat</title>
<meta name="description" content="CodeCat的技术博客 — FastAPI、LangChain、DeepSeek、Vibe Coding实践笔记。">
<meta name="keywords" content="FastAPI, LangChain, DeepSeek, Python, AI开发, Vibe Coding, 技术博客">
<meta name="author" content="CodeCat">
<link rel="canonical" href="https://codecatio.github.io/blog.html">
<meta property="og:title" content="博客 — CodeCat">
<meta property="og:description" content="FastAPI、LangChain、DeepSeek、Vibe Coding实践笔记。">
<meta property="og:type" content="website">
<meta property="og:url" content="https://codecatio.github.io/blog.html">
<link rel="stylesheet" href="styles.css?v=2">
<style>
#tagCloud .tag-pill {
background: var(--tag-bg);
color: var(--tag-text);
border: none;
box-shadow: none;
cursor: pointer;
font-family: 'Courier New', monospace;
}
.tag-pill.selected {
background: var(--accent) !important;
color: #fff !important;
}
.tag-pill.selected:hover {
background: #7a4d24 !important;
}
.post-card.hidden { display: none; }
.no-results {
text-align: center;
padding: 2rem;
color: var(--text-muted);
font-size: 0.9rem;
}
</style>
</head>
<body>
<nav class="lang-switch">
<button data-lang="zh" class="active">中文</button>
<button data-lang="en">EN</button>
<button data-lang="jp">日本語</button>
<button data-lang="kr">한국어</button>
</nav>
<div class="layout">
<!-- Sidebar -->
<aside class="sidebar">
<div class="avatar">CC</div>
<div class="site-name"><a href="index.html">CodeCat</a></div>
<div class="social">
<a href="blog.html" title="RSS">RSS</a>
<a href="mailto:codecattdev@gmail.com" title="Email">@</a>
<a href="https://github.com/CodeCatIO" target="_blank" rel="noopener" title="GitHub">GH</a>
</div>
<nav class="sidebar-nav">
<a href="index.html" data-i18n="nav_home">首页</a>
<a href="blog.html" class="active" data-i18n="nav_blog">博客</a>
<a href="about.html" data-i18n="nav_about">关于</a>
<a href="https://github.com/CodeCatIO" target="_blank" rel="noopener">GitHub</a>
</nav>
</aside>
<!-- Content -->
<main class="content">
<div class="content-header">
<h2 data-i18n="all_posts">全部文章</h2>
</div>
<!-- Tag cloud: click to filter -->
<div class="tag-cloud" id="tagCloud">
<button class="tag-pill" data-tag="Python">Python</button>
<button class="tag-pill" data-tag="Python3">Python3</button>
<button class="tag-pill" data-tag="Java">Java</button>
<button class="tag-pill" data-tag="C++">C++</button>
<button class="tag-pill" data-tag="Vibe Coding">Vibe Coding</button>
<button class="tag-pill" data-tag="Agentic Engineering">Agentic Engineering</button>
<button class="tag-pill" data-tag="AI">AI</button>
<button class="tag-pill" data-tag="FastAPI">FastAPI</button>
<button class="tag-pill" data-tag="LangChain">LangChain</button>
<button class="tag-pill" data-tag="DeepSeek">DeepSeek</button>
<button class="tag-pill" data-tag="JWT">JWT</button>
<button class="tag-pill" data-tag="Vue 3">Vue 3</button>
</div>
<div class="post-list" id="postList">
<article class="post-card" data-tags="Python,Python3,Java,C++">
<div class="post-thumb ai-badge">
<span class="thumb-label">PYTHON<br>NOTES</span>
</div>
<div class="post-card-body">
<h3><a href="posts/python-from-java-cpp.html">从Java和C++过来,我的Python基础笔记</a></h3>
<div class="post-card-meta">2026-09-23 · 学习笔记</div>
<p class="post-card-excerpt">之前一直写Java和C++,Python虽然用过但没系统学过。今天过了一遍基础特性和Python3新增特性,记录认知冲击。</p>
<div class="tag-list">
<span class="tag-pill">Python</span>
<span class="tag-pill">Python3</span>
<span class="tag-pill">Java</span>
<span class="tag-pill">C++</span>
</div>
</div>
</article>
<article class="post-card" data-tags="Vibe Coding,Agentic Engineering,AI">
<div class="post-thumb ai-badge">
<span class="thumb-label">VIBE<br>CODING</span>
</div>
<div class="post-card-body">
<h3><a href="posts/ai_cannot_replace_human.html">AI替代不了程序员</a></h3>
<div class="post-card-meta">2026-09-22 · Vibe Coding</div>
<p class="post-card-excerpt">网上到处说AI要替代程序员了。但AI只能帮你写小功能,不给架构和规划,成品大概率不是你要的。</p>
<div class="tag-list">
<span class="tag-pill">Vibe Coding</span>
<span class="tag-pill">Agentic Engineering</span>
<span class="tag-pill">AI</span>
</div>
</div>
</article>
</div>
<div class="no-results hidden" id="noResults">没有匹配的文章</div>
<footer class="site-footer">
<p data-i18n="footer">© 2026 CodeCat. Built with plain HTML & CSS.</p>
</footer>
</main>
</div>
<script src="script.js?v=2"></script>
<script>
// Tag filter: multi-select, OR logic, toggle
(function() {
var selectedTags = new Set();
document.querySelectorAll('#tagCloud .tag-pill').forEach(function(pill) {
pill.addEventListener('click', function() {
var tag = this.dataset.tag;
if (selectedTags.has(tag)) {
selectedTags.delete(tag);
this.classList.remove('selected');
} else {
selectedTags.add(tag);
this.classList.add('selected');
}
filterPosts();
});
});
function filterPosts() {
var posts = document.querySelectorAll('#postList .post-card');
var visible = 0;
posts.forEach(function(post) {
var postTags = post.dataset.tags.split(',');
var match = selectedTags.size === 0 ||
postTags.some(function(t) { return selectedTags.has(t); });
if (match) {
post.classList.remove('hidden');
visible++;
} else {
post.classList.add('hidden');
}
});
document.getElementById('noResults').classList.toggle('hidden', visible > 0);
}
})();
</script>
</body>
</html>