Default Linked Tasks widget in Core
parent
8368b2839f
commit
58b0a5b8fb
|
@ -2,10 +2,11 @@
|
||||||
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:
|
||||||
# hooks.top.where: 'true'
|
where: 'true'
|
||||||
|
order: 1
|
||||||
---
|
---
|
||||||
{{#let @linkedTasks = {task where not done and name =~ "\[\[" + escapeRegexp(@page.name) + "\]\]"} }}
|
{{#let @linkedTasks = {task where not done and contains(name, "[[" + @page.name + "]]")}}}
|
||||||
{{#if @linkedTasks}}
|
{{#if @linkedTasks}}
|
||||||
# Linked Tasks
|
# Linked Tasks
|
||||||
{{#each @linkedTasks}}
|
{{#each @linkedTasks}}
|
||||||
|
|
Loading…
Reference in New Issue