完整的工作流解决方案
✅ Templater - 动态模板系统
✅ Dataview - 数据查询引擎
| 模板 | 文件 | 功能 |
|---|---|---|
| 📝 日记 | diary/templater-template.md | 自动填充日期、心情、天气 |
| ✅ 待办 | todo/templater-template.md | 任务管理、进度追踪 |
| 📚 文章 | posts/templater-template.md | 博客文章标准结构 |
---
title: "<% tp.date.now('YYYY-MM-DD') %> 日记"
date: <% tp.date.now('YYYY-MM-DD') %>
mood: happy
weather: "☀️"
location: ""
---
# <% tp.date.now('YYYY年MM月DD日') %>
💭 今日心情:<% tp.file.cursor(1) %>
TABLE date, mood, weather
FROM "diary"
WHERE !draft
SORT date DESC
LIMIT 10
📝 日记查询
✅ 待办查询
📚 文章查询
const todos = dv.pages('"todo"').where(p => !p.draft);
const total = todos.length;
const completed = todos.where(p => p.status === "done").length;
const rate = Math.round(completed / total * 100);
dv.paragraph(`📊 完成率: ${rate}%`);
实时数据统计面板
显示内容:
实时更新:
{
"templates_folder": "template",
"trigger_on_file_creation": true,
"auto_jump_to_cursor": true,
"enable_folder_templates": true,
"folder_templates": [
{
"folder": "diary",
"template": "template/diary/templater-template.md"
}
]
}
src/content/
├── diary/ # 日记目录
├── todo/ # 待办目录
├── posts/ # 文章目录
└── template/ # 模板目录
├── diary/
│ └── templater-template.md
├── todo/
│ └── templater-template.md
├── posts/
│ └── templater-template.md
├── Dashboard.md
└── DATAVIEW-EXAMPLES.md
日常使用流程
模板自定义:
查询自定义:
📝 日记模板
✅ 待办模板
📚 文章模板
template/DATAVIEW-EXAMPLES.md 包含:
| 文档 | 内容 | 字数 |
|---|---|---|
| 🚀 OBSIDIAN-QUICKSTART.md | 快速开始指南 | 1000+ |
| 📚 OBSIDIAN-WORKFLOW.md | 完整工作流 | 9000+ |
| 📊 DATAVIEW-EXAMPLES.md | 查询示例 | 5000+ |
| 🎯 OBSIDIAN-INTEGRATION-SUMMARY.md | 技术总结 | 7000+ |
template/Dashboard.md自定义模板
根据个人需求
修改模板结构
创建查询
编写自定义
Dataview 查询
优化工作流
调整为最适合
自己的流程
✅ Templater 模板系统
✅ Dataview 查询引擎
✅ 完整的文档和示例
✅ 开箱即用的工作流
🌟 祝您使用愉快!