公众号主页
https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU2NzgzMzYwNQ==&scene=124#wechat_redirect
通过百度网盘分享的文件:天正给排水 T2…
链接:https://pan.baidu.com/s/1SFuGKZodRS7-T996WaTYuA?pwd=rsra
复制这段内容打开「百度网盘APP 即可获取」
重新生成 Home.md 和 home.css 文件(因内核重置导致文件失效)
home_md_content = """---
cssclass: home
🗓️ {{date:YYYY年MM月DD日}} · {{weekday}} · 武汉 22~32℃ · 🌤️ 微风 · 湿度72%
👋 下午好,Harriet!
今天是你使用 Obsidian 的第{{moment().diff('2022-02-17', 'days')}}天 🎉
🌙 月亮在夜空中升起,今晚月相为:🌘 (可通过插件自动获取)
🧭 快捷导航
📈 数据统计板
table length(rows) as "数量"
from "Literature"
group by file.tags
table count(rows) as "笔记数"
from "Project"
group by file.folder
📅 今日待办事项
not done
due today
🎯 一周目标任务
not done
due after today
due before date(today + 7 days)
✍️ 使用情况
- 📄 已创建笔记数:
= dv.pages().length - 🗂️ 当前标签数:
= dv.pages().flatMap(p => p.file.tags).unique().length - ✅ 已完成任务:
= dv.pages().file.tasks.where(t => t.completed).length
🧰 常用工具按钮
| 工具按钮 | 功能说明 |
|---|---|
| 📌 打开任务看板 | 任务看板 |
| 📖 阅读笔记 | Reading |
| 📘 小空图书馆 | Literature |
| 📊 研究计划 | Research |
| ✨ 模板中心 | Template |
💡「坚持并不容易,但每天走一小步,也能走出一条光明之路。」🌈
"""
home_css_content = """/* whale 横幅 */
.markdown-preview-view img[alt="鲸鱼横幅"] {
border-radius: 10px;
max-height: 220px;
object-fit: cover;
width: 100%;
margin-bottom: 1em;
}
/* 首页布局美化 */
.home h2, .home h3 {
border-bottom: 1px solid #ddd;
padding-bottom: 4px;
margin-top: 1.5em;
}
"""
保存路径
home_md_path = "/mnt/data/Home.md"
home_css_path = "/mnt/data/home.css"
写入文件
with open(home_md_path, "w", encoding="utf-8") as f:
f.write(home_md_content)
with open(home_css_path, "w", encoding="utf-8") as f:
f.write(home_css_content)
home_md_path, home_css_path