Updated Linked Tasks template
parent
d6d06abe64
commit
f914c40330
|
@ -2,8 +2,14 @@
|
||||||
tags: template
|
tags: template
|
||||||
description: |
|
description: |
|
||||||
Shows all tasks that contain a link the current page. For instance a task that references `[[John]]` in its name, would appear on the `John` page.
|
Shows all tasks that contain a link the current page. For instance a task that references `[[John]]` in its name, would appear on the `John` page.
|
||||||
|
# Disabled by default for now
|
||||||
|
# hooks.top.where: 'true'
|
||||||
---
|
---
|
||||||
|
{{#let @linkedTasks = {task where not done and name =~ "\[\[" + escapeRegexp(@page.name) + "\]\]"} }}
|
||||||
```query
|
{{#if @linkedTasks}}
|
||||||
task where name =~ /\[\[{{escapeRegexp(@page.name)}}\]\]/ where done = false render [[Library/Core/Query/Task]]
|
# Linked Tasks
|
||||||
```
|
{{#each @linkedTasks}}
|
||||||
|
{{template([[Library/Core/Query/Task]], .)}}
|
||||||
|
{{/each}}
|
||||||
|
{{/if}}
|
||||||
|
{{/let}}
|
||||||
|
|
Loading…
Reference in New Issue