Skip to content

Commit 7bbf735

Browse files
author
albert4719
committed
检索页页头、README 导航表格和 sitemap 加生活自查入口,离线版把链接改写成线上地址
1 parent a7d5a68 commit 7bbf735

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ AI 助手 skill 支持 Claude Code 和 Codex。装上后直接问「替朋友担
3434

3535
[目录](#目录) · [术语表](#读懂数字术语表) · [核实记录](docs/核实记录/)
3636

37+
</td></tr>
38+
<tr><td align="right"><b>自查</b></td><td align="left">
39+
40+
[生活自查](https://eternity4719.github.io/HowToLiveBetter/selfcheck.html):回答几十道是否题,看看书里哪些事你还没做到、先做哪几件
41+
3742
</td></tr>
3843
<tr><td align="right"><b>长文</b></td><td align="left">
3944

‎index.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ <h1>高性价比人生指南</h1>
472472
<p>不用全做:这是一份按性价比排好的备选单,不是任务清单。挑走一两条就算数,剩下的需要时再回来查——想挑省力的,左边把「花钱」选「不花钱」、「要毅力」选「不用」,剩下的就是。作者自己也没做到其中大部分。正文里带虚线的「第 X 条」可以点开,就地看那条写了什么,不用自己翻过去。</p>
473473
<p>书里的内容可能过时,也可能有错。不少政策各地执行不一样。真去办事、看病、打官司时,以当地部门、医生和律师的说法为准。发现写错了,欢迎<a href="https://github.com/eternity4719/HowToLiveBetter/issues">提 issue</a>。</p>
474474
<div class="stat" aria-live="polite">当前显示 <b id="cnt">–</b> 条,共 <span id="tot">–</span> 条</div>
475+
<div class="doc-links">生活自查:<a href="selfcheck.html">回答几十道是否题,看看书里哪些事你还没做到</a></div>
475476
<div class="doc-links">长文:<a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E9%81%87%E5%88%B0%E9%99%8C%E7%94%9F%E4%BA%BA%E5%87%BA%E4%BA%8B%E8%AF%A5%E4%B8%8D%E8%AF%A5%E5%81%9C.md">遇到陌生人出事该不该停</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%AE%B6%E5%BA%AD%E5%BA%94%E6%80%A5%E8%A3%85%E5%A4%87%E6%B8%85%E5%8D%95.md">家庭应急装备清单</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E7%BB%93%E5%A9%9A%E5%88%92%E4%B8%8D%E5%88%92%E7%AE%97.md">结婚划不划算</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%81%9A%E5%B9%B3%E5%8F%B0%E8%A6%81%E5%8A%9E%E5%93%AA%E4%BA%9B%E8%AF%81.md">做平台要办哪些证</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E7%94%9F%E7%89%A9%E9%92%9F%E5%92%8C%E5%A4%9C%E7%8F%AD.md">生物钟和夜班</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E8%A2%AB%E8%A3%81%E4%BA%86%E4%B9%8B%E5%90%8E%E5%85%88%E5%81%9A%E4%BB%80%E4%B9%88.md">被裁了之后先做什么</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%AD%A9%E5%AD%90%E5%87%BA%E7%94%9F%E5%89%8D%E5%90%8E%E8%A6%81%E5%8A%9E%E7%9A%84%E4%BA%8B.md">孩子出生前后要办的事</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%88%9A%E7%A1%AE%E8%AF%8A%E6%85%A2%E6%80%A7%E7%97%85%E4%B9%8B%E5%90%8E.md">刚确诊慢性病之后</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E6%8D%A2%E5%B7%A5%E4%BD%9C%E3%80%81%E6%8D%A2%E5%9F%8E%E5%B8%82%E4%B9%8B%E5%89%8D.md">换工作、换城市之前</a> ·<a href="https://github.com/eternity4719/HowToLiveBetter/tree/main/docs/%E6%A0%B8%E5%AE%9E%E8%AE%B0%E5%BD%95">来源核实记录</a></div>
476477
<div class="doc-links">AI 助手:<a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/skills/life-decision-guide/README.md">让 Claude Code 或 Codex 照这本书回答你的问题(skill 装法)</a></div>
477478
<details class="gloss" id="gloss"><summary>看不懂的缩写和名词</summary><p>正文里带虚线的词,点一下或把鼠标放上去就有解释。全表如下。</p><dl></dl></details>

‎sitemap.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<changefreq>weekly</changefreq>
77
<priority>1.0</priority>
88
</url>
9+
<url>
10+
<loc>https://eternity4719.github.io/HowToLiveBetter/selfcheck.html</loc>
11+
<lastmod>2026-10-11</lastmod>
12+
<changefreq>monthly</changefreq>
13+
<priority>0.7</priority>
14+
</url>
915
<url>
1016
<loc>https://eternity4719.github.io/HowToLiveBetter/README.md</loc>
1117
<lastmod>2026-09-08</lastmod>

‎tools/offline/build.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ if (/googletagmanager|google-analytics/.test(html)) throw new Error('剥掉标
4242
// 相对链接在本地打开时是死的,改成线上地址
4343
must('href="README.md"', ' README.md 链接');
4444
must('href="book/"', ' book/ 链接');
45+
must('href="selfcheck.html"', ' 自查页链接');
4546
html = html
4647
.replaceAll('href="README.md"', `href="${REPO}/blob/main/README.md"`)
48+
.replaceAll('href="selfcheck.html"', `href="${SITE}selfcheck.html"`)
4749
.replaceAll('href="book/"', `href="${REPO}/tree/main/book"`)
4850
.replaceAll('<a class="title" href="./"', `<a class="title" href="${SITE}"`);
4951

0 commit comments

Comments
 (0)