From 58b0a5b8fb545761b58864174a2a3a73327bd341 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 7 Jul 2024 12:45:17 +0200 Subject: [PATCH] Default Linked Tasks widget in Core --- website/Library/Core/Widget/Linked Tasks.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/Library/Core/Widget/Linked Tasks.md b/website/Library/Core/Widget/Linked Tasks.md index e10addde..ac4af38b 100644 --- a/website/Library/Core/Widget/Linked Tasks.md +++ b/website/Library/Core/Widget/Linked Tasks.md @@ -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}}