mirror of
https://github.com/eternity4719/HowToLiveBetter.git
synced 2026-10-28 11:44:50 +08:00
检索页页头、README 导航表格和 sitemap 加生活自查入口,离线版把链接改写成线上地址
This commit is contained in:
1 parent
a7d5a6837a
commit
7bbf735cd5
4 files changed
+14
No files matched your search
@@ -34,6 +34,11 @@ AI 助手 skill 支持 Claude Code 和 Codex。装上后直接问「替朋友担
|
||||
|
||||
[目录](#目录) · [术语表](#读懂数字术语表) · [核实记录](docs/核实记录/)
|
||||
|
||||
</td></tr>
|
||||
<tr><td align="right"><b>自查</b></td><td align="left">
|
||||
|
||||
[生活自查](https://eternity4719.github.io/HowToLiveBetter/selfcheck.html):回答几十道是否题,看看书里哪些事你还没做到、先做哪几件
|
||||
|
||||
</td></tr>
|
||||
<tr><td align="right"><b>长文</b></td><td align="left">
|
||||
|
||||
|
||||
@@ -472,6 +472,7 @@ abbr.term:hover{border-bottom-color:var(--brand-1);color:var(--brand-1)}
|
||||
<p>不用全做:这是一份按性价比排好的备选单,不是任务清单。挑走一两条就算数,剩下的需要时再回来查——想挑省力的,左边把「花钱」选「不花钱」、「要毅力」选「不用」,剩下的就是。作者自己也没做到其中大部分。正文里带虚线的「第 X 条」可以点开,就地看那条写了什么,不用自己翻过去。</p>
|
||||
<p>书里的内容可能过时,也可能有错。不少政策各地执行不一样。真去办事、看病、打官司时,以当地部门、医生和律师的说法为准。发现写错了,欢迎<a href="https://github.com/eternity4719/HowToLiveBetter/issues">提 issue</a>。</p>
|
||||
<div class="stat" aria-live="polite">当前显示 <b id="cnt">–</b> 条,共 <span id="tot">–</span> 条</div>
|
||||
<div class="doc-links">生活自查:<a href="selfcheck.html">回答几十道是否题,看看书里哪些事你还没做到</a></div>
|
||||
<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>
|
||||
<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>
|
||||
<details class="gloss" id="gloss"><summary>看不懂的缩写和名词</summary><p>正文里带虚线的词,点一下或把鼠标放上去就有解释。全表如下。</p><dl></dl></details>
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://eternity4719.github.io/HowToLiveBetter/selfcheck.html</loc>
|
||||
<lastmod>2026-10-11</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://eternity4719.github.io/HowToLiveBetter/README.md</loc>
|
||||
<lastmod>2026-09-08</lastmod>
|
||||
|
||||
@@ -42,8 +42,10 @@ if (/googletagmanager|google-analytics/.test(html)) throw new Error('剥掉标
|
||||
// 相对链接在本地打开时是死的,改成线上地址
|
||||
must('href="README.md"', ' README.md 链接');
|
||||
must('href="book/"', ' book/ 链接');
|
||||
must('href="selfcheck.html"', ' 自查页链接');
|
||||
html = html
|
||||
.replaceAll('href="README.md"', `href="${REPO}/blob/main/README.md"`)
|
||||
.replaceAll('href="selfcheck.html"', `href="${SITE}selfcheck.html"`)
|
||||
.replaceAll('href="book/"', `href="${REPO}/tree/main/book"`)
|
||||
.replaceAll('<a class="title" href="./"', `<a class="title" href="${SITE}"`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user