Default Linked Tasks widget in Core

pull/925/head
Zef Hemel 2024-07-07 12:45:17 +02:00
parent 8368b2839f
commit 58b0a5b8fb
1 changed files with 4 additions and 3 deletions

View File

@ -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}}