2024-01-08 16:08:26 +00:00
|
|
|
---
|
2024-01-20 18:16:07 +00:00
|
|
|
description: Adds Linked Mentions to pages
|
2024-01-08 16:08:26 +00:00
|
|
|
tags: template
|
2024-01-20 18:16:07 +00:00
|
|
|
hooks.bottom.where: 'true'
|
2024-01-08 16:08:26 +00: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}}"
|
|
|
|
```
|