Skip to content

Commit f45c181

Browse files
committed
修复:恢复 codex 破坏的所有功能
- 修复 claude.js 合并冲突导致全部 JS 失效(深色模式/下拉菜单/动效) - 修复中文乱码 - Giscus 主题 URL 改为相对路径 - 字体加载使用 preload 异步模式
1 parent 5eb229e commit f45c181

4 files changed

Lines changed: 23 additions & 737 deletions

File tree

themes/claude/layout/layout.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<link rel="preload" href="https://cdn.jsdelivr.net/npm/cn-fontsource-xiaolai-mono-sc-regular/font.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
1616
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cn-fontsource-xiaolai-mono-sc-regular/font.css"></noscript>
1717

18-
1918
<link rel="shortcut icon" href="/img/WZTB.png">
2019
<link rel="stylesheet" href="/css/claude.css"/>
2120
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"/>

themes/claude/layout/post.ejs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<time datetime="<%= date_xml(page.date) %>"><%= date(page.date, 'YYYY-MM-DD') %></time>
1616
<% if (page.updated && page.updated > page.date) { %>
1717
<span class="meta-sep">·</span>
18-
<span>更新�?<%= date(page.updated, 'YYYY-MM-DD') %></span>
18+
<span>更新于 <%= date(page.updated, 'YYYY-MM-DD') %></span>
1919
<% } %>
2020
<% if (page.content) { %>
2121
<% var words = strip_html(page.content).length; %>
2222
<span class="meta-sep">·</span>
23-
<span><%= words %> ?/span>
23+
<span><%= words %> </span>
2424
<span class="meta-sep">·</span>
2525
<span><%= Math.max(1, Math.round(words / 500)) %> 分钟阅读</span>
2626
<% } %>
@@ -45,15 +45,15 @@
4545
<div class="post-nav__prev">
4646
<% if (page.prev) { %>
4747
<a href="<%= url_for(page.prev.path) %>">
48-
<span class="post-nav__label">?上一�?/span>
48+
<span class="post-nav__label">← 上一篇</span>
4949
<span class="post-nav__title"><%= page.prev.title %></span>
5050
</a>
5151
<% } %>
5252
</div>
5353
<div class="post-nav__next">
5454
<% if (page.next) { %>
5555
<a href="<%= url_for(page.next.path) %>">
56-
<span class="post-nav__label">下一�??/span>
56+
<span class="post-nav__label">下一篇 →</span>
5757
<span class="post-nav__title"><%= page.next.title %></span>
5858
</a>
5959
<% } %>
@@ -92,7 +92,7 @@
9292
crossorigin="anonymous"
9393
async>
9494
</script>
95-
<noscript>请启�?JavaScript 来查看评论?/noscript>
95+
<noscript>请启用 JavaScript 来查看评论。</noscript>
9696
</div>
9797
</div>
9898
</article>

themes/claude/source/css/modules/responsive.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ===== Large Screens (1200px+) ===== */
1+
/* ===== Large Screens (1200px+) ===== */
22
@media (min-width: 1200px) {
33
.container {
44
max-width: 1200px;
@@ -226,6 +226,9 @@
226226
.post-article__body h2 {
227227
font-size: 1.3rem;
228228
}
229+
230+
.post-article__nav {
231+
}
229232
}
230233

231234
/* ===== Small Phone (< 480px) ===== */
@@ -339,4 +342,3 @@
339342
}
340343
}
341344

342-

0 commit comments

Comments
 (0)