silverbullet/website/Library/Journal.md

34 lines
910 B
Markdown
Raw Permalink Normal View History

This [[Libraries|library]] contains some useful page templates for journalers. Want to easily create a daily or weekly note? These templates can get you started. Instantiate them via {[Page: From Template]}.
# Installation
In your [[SETTINGS]] list the following under `libraries:`
```yaml
libraries:
- import: "[[!silverbullet.md/Library/Journal/*]]"
```
Then run the {[Libraries: Update]} command to install it.
See [[Libraries#Configuring libraries]] for more details.
# Included templates
```query
page
where name =~ /^{{escapeRegexp(@page.name)}}\//
render [[Library/Core/Query/Page]]
```
# Tips
Do you want your spaces start page to always be either your daily or weekly note? You can!
To set the _daily note_ as the default page, set the following in [[SETTINGS]]:
```yaml
indexPage: "Journal/Day/{{today}}"
```
And for the _weekly note_:
```yaml
indexPage: "Journal/Week/{{weekStart}}"
```