silverbullet/website/Library/Journal.md

34 lines
910 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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}}"
```