Default Linked Tasks widget in Core
parent
8368b2839f
commit
58b0a5b8fb
|
@ -2,10 +2,11 @@
|
|||
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.
|
||||
# Disabled by default for now
|
||||
# hooks.top.where: 'true'
|
||||
hooks.top:
|
||||
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}}
|
||||
# Linked Tasks
|
||||
{{#each @linkedTasks}}
|
||||
|
|
Loading…
Reference in New Issue