notes/Library/Core/Widget/Linked Mentions.md

19 lines
466 B
Markdown
Raw Normal View History

2024-01-22 15:49:44 +01:00
---
description: Adds Linked Mentions to pages
tags: template
2024-03-01 13:37:14 +01:00
hooks.bottom.where: 'false'
2024-01-22 15:49:44 +01:00
---
```template
# We need to escape handlebars directives here, since we're embedding
# this template into a template (INCEPTION)
template: |
{{escape "#if ."}}
# Linked Mentions
{{escape "#each ."}}
* [[{{escape "ref"}}]]: `{{escape "snippet"}}`
{{escape "/each"}}
{{escape "/if"}}
query: |
link where toPage = "{{@page.name}}" and page != "{{@page.name}}"
```