Docs and template sets work

This commit is contained in:
Zef Hemel
2023-12-22 16:40:38 +01:00
parent 3350c7f076
commit 0a7fc05fef
25 changed files with 99 additions and 54 deletions
+10
View File
@@ -0,0 +1,10 @@
---
tags: template
type: live
description: Lists all pages with ".conflicted" in the name, created as a result of a synchronization conflict.
---
### Conflicting pages
```query
page where name =~ /\.conflicted/ render [[template/pages/page]]
```
+11
View File
@@ -0,0 +1,11 @@
---
tags: template
type: live
description: |
Shows all tasks that reference (tag) the current page. For instance a task that references `[[John]]` in its name, would appear on the `John` page if it would use this [[sets/tasks/incoming]] template.
order: 2
---
```query
task where name =~ /\[\[{{escapeRegexp @page.name}}\]\]/ where done = false render [[template/task]]
```
+11
View File
@@ -0,0 +1,11 @@
---
tags: template
type: live
description: Queries all tasks tagged with a specific tag.
usage: Pass in the tag to filter on as the `value` of this template
order: 2
---
```query
task where tags = "{{.}}" and done = false render [[template/tasks/task]]
```