中文说明请往下翻
现可以在Releases部分直接下载中文版示例库
2022-05-13 Update:
- Added an example vault (in Chinese). An English example vault will also be released this month.
2022-04-14 Update:
- Added banner icon as date today in
homepage setting.css
; - Added stickie css for birthday countdown in
homepage setting.css
;
2022-02-24 Update:
- Added task-based Project Tracking which would present a progress bar of finished_tasks/all_tasks in the project page. (To use, include
target: tasks
andtags: project
in the YAML section and enablesharetype.css
for special tag styling. - Deleted Profile photo; Added Banners Icon.
2022-01-11 Update:
- Added status bar styling to the project tracking section.
2022-01-07 Update:
- Fixed mobile view of the homepage;
- Made modifications to allow an all-theme homepage view.
A dashboard for your obsidian vault.
Currently the homepage features:
- A map of contents that leads to different parts in your vaults (such as your daily notes, weekly notes an other periodic notes);
- Three button tabs that allow you to switch between different parts you'd like to display. Currently there's a music of the month and automatic birthday countdown featured (this part is supported by the plugin React Components);
- A dynamic view of different sections in your daily note (in my case they are diaries, daily agendas, and my parrot logs);
- using dataviewjs to to present the daily note embeds is convenient but it has one drawback which I simply cannot endure, that is, it will crash down every time you edit the daily note (which I do a lot through quickadd while staying on homepage). There is now an alternative to this which I recommend using quickadd macro. Please check
### QA automatic date update
for more information;
- A project tracking for notes with the tag #project;
- A Currently Reading section yet to be automatized;
- Obsidian activity.
- Install Dataview, Banners, React Components, Admonition and Activity History (Quickadd optional);
- The theme Blue Topaz is suggested;
- Enable React Components; Create a components folder and put "music and birthday countdown.md" in it;
- Add the two css files to your css snippets folder; (* The css file disable hover preview for wiki links)
- Dataview: enable dataviewjs and inline queries;
- Admonition: create an "ad-col2" view with no background colors and no codeblock names;
- Open the
00. Homepage.md
note in your vault and get all sections personalized.
- To use birthday countdown function, you'll need to create a page with the name of the persons/pets you'd like to have a countdown for and add "birthday: YYYY-MM-DD" in the YAML.
- To use project tracking you'll need to have a
target: 10000
status: in progress
tags: project
in the YAML section of your single note project. It's based on WordCountTable so you can check there for more info.
If your project is tasks-based, and you want the progress bar to depict finished_tasks/all_tasks instead, use the YAML
target: tasks
status: in progress
tags: project
Enable sharetype.css
for special tag styling.
With this plugin you can quickly access your homepage (Homepage plugin required) from anywhere, both on PC and your phone.
Settings:
With the plugin Advanced URI you can create a url for literally anything. Currently I am only using this for running two commands:
- open big calendar
- open memos
There are several kinds of dynamic buttons in the MOC part.
- Periodic Notes
Supposing you have a daily note formatted YYYY-MM-DD, you should write the md link as followed:
- `$= '[['+moment().format("YYYY-MM-DD")+'|Today]]'`
It'll create a button displaying "Today" that leads to your daily note.
Some other suggestions with Advanced URI
- you can change the current daily note button to link to the
command: open daily note
which would create the daily note with your chosen template when it does not exist.
- URL scheme
If you are using Apple products, both MacOS and IOS have extensive URL schemes that allow you to open almost any app using URL, even perfoming some actions within the app (e.g. open a specific note; open a specific book in IBooks, etc.) I have installed a RSS reader called REEDER and am using this button to open it
- [Reeder](reeder://)
This is a roundabout way to display dynamic daily notes embeds in our homepage. Originally, we used Dataviewjs to achieve this, but with dvjs we have to refresh the page every time we made modifications to the daily note (I frequently modified daily note while staying on my homepage with quickadd).
Now there is a more stable way using quickadd macro.
We will start with this codeblock (it is present in the 00. homepage.md
file, but hidden with %%).
![[2022年01月19日#日记]]
![[2022年01月19日#日程]]
![[Pasted image 20211221152043.png#center|200]]
![[2022年01月18日#鸟崽]]
In which I display three sections of my daily note.
Then, we install quickadd, click on manage macros
, then add a new macro Date Update
set to run on plugin load.
Next, download the DateUpdate.js
script to anyplace in your vault.
Open the script with any editor, and change the homepage filepath and section formats according to the instructions.
Configure the new macro, and you'll see DateUpdate listed in the userscript.
Add it.
Then you are all set! Now the date will automatically update whenever you open Obsidian.
- 一个导航,可通向您的Obsidian库中的不同部分(例如您的每日笔记、每周笔记和其他定期笔记),
- 三个选项标签,可让您在要显示的不同部分之间切换。目前有本月音乐和自动生日倒计时功能。
- 每日笔记中不同部分的动态视图(在我的情况下,它们是日记、每日议程和我的鹦鹉日志)
(注:该功能由dataview js实现,但是dvjs有一个重大缺陷:每次在对源文件修改时,主页中的嵌入部分都会坍缩。如果你想避免这个问题,请参见文末### 通过Quickadd自动更新主页日期)
- 带有标签#project 的笔记项目跟踪。
- 目前阅读部分尚未自动化
- Obsidian动态记录。
- 安装Dataview、Banners、React Components、Admonition和Activity History (推荐下载 Quickadd,加速工作流);
- 建议使用 Blue Topaz 主题,效果总体较好;
- 启用React Components;创建一个components文件夹,把“音乐和生日倒计时.md”放进去;
- 将这两个 css 文件添加到您的 css 片段中;
- Dataview:启用dataviewjs和inline queries;
- Admonition:创建一个没有背景颜色和代码块名称的“ad-col2”,配置如下图;
- 要使用生日倒计时功能,您需要创建一个页面,其中包含您想要倒计时的人/宠物的名称,并在 YAML 中添加“birthday:YYYY-MM-DD”。
- 要使用项目跟踪,您需要有一个
target:10000
status:进行中
tags: project
在单笔记项目的 YAML 部分。它基于 https://gist.github.com/chrisgrieser/ac16a80cdd9e8e0e84606cc24e35ad99 因此您可以在此处查看更多信息。
如果你想使用“完成任务/总任务”来进行项目进度追踪,请使用如下YAML:
target: tasks
status: in progress
tags: project
如果需要标签效果,请启用sharetype.css
css片段。
使用此插件,您可以在 PC 和手机上的任何地方快速访问您的主页(需要Homepage插件)。
设置:
使用插件 Advanced URI,您可以为几乎任何内容和操作创建一个 url。目前我只使用它来运行两个命令:
1.打开Big Calendar
2.打开Memos
- 我也强烈推荐你使用这个插件来生成每日日记、每周周记、每月月记的按钮,因为在下一个章节会说到的Dataviewjs方案并不太可靠(在某个版本上它在手机上失效)。使用advanced uri还有一个好处,就是你没有日记的时候也可以点击该按钮直接生成日记,dataviewjs则做不到。
MOC部分有几种动态按钮。
- 定期笔记
假设您有一个格式为 YYYY-MM-DD 的每日笔记,您应该如此编写 md 链接,如下所示:
- `$= '[['+moment().format("YYYY-MM-DD")+'|今天]]'`
它将创建一个显示“今天”的按钮并指向您的每日笔记。
- URL方案
如果您使用的是 Apple 产品,MacOS 和 IOS 都有详尽的 URL 方案,允许您使用 URL 打开几乎任何应用程序,甚至可以在应用程序内执行某些操作(例如打开特定笔记;在 IBooks 中打开特定书籍等)我安装了一个名为 REEDER 的 RSS 阅读器,并使用此按钮打开它
- [Reeder](reeder://)
这是一种在我们的主页中动态显示嵌入的每日笔记的迂回方式。 本来,我们使用Dataviewjs来实现这一点,但是,使用dvjs的话,每次修改日记,主页中的嵌入都会坍缩(我经常在主页页面上使用quickadd修改每日笔记)。
现在有一种更稳定的方式,即使用 quickadd 宏。
我们将从这个代码块开始(它存在于 00.homepage.md
文件中,但用 %% 隐藏)。
![[2022年01月19日#日记]]
![[2022年01月19日#日程]]
![[Pasted image 20211221152043.png#center|200]]
![[2022年01月18日#鸟崽]]
我在其中展示了我的Daily Note的三个部分。
然后,我们安装 quickadd,点击“管理宏 (manage macros)”,然后添加一个新的宏“日期更新”,设置为在插件加载时运行(run on plugin load)。
接下来,将 DateUpdate.js
脚本下载到库中的任何位置。
使用任何编辑器打开脚本,并根据说明更改主页文件路径和部分格式。
配置新宏,您将看到用户脚本中列出的DateUpdate。
添加。
一切准备就绪! 现在,只要您打开 Obsidian,日期就会自动更新。