2024-01-21 02:16:07 +08:00
|
|
|
---
|
|
|
|
tags: template
|
|
|
|
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.
|
2024-07-07 18:11:27 +08:00
|
|
|
# Disabled by default for now
|
|
|
|
# hooks.top.where: 'true'
|
2024-01-21 02:16:07 +08:00
|
|
|
---
|
2024-07-07 18:11:27 +08:00
|
|
|
{{#let @linkedTasks = {task where not done and name =~ "\[\[" + escapeRegexp(@page.name) + "\]\]"} }}
|
|
|
|
{{#if @linkedTasks}}
|
|
|
|
# Linked Tasks
|
|
|
|
{{#each @linkedTasks}}
|
|
|
|
{{template([[Library/Core/Query/Task]], .)}}
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|