Rebuilt frontmatter templates as template widgets

This commit is contained in:
Zef Hemel
2024-01-08 17:08:35 +01:00
parent 5b3dd500e4
commit 848e11a773
45 changed files with 471 additions and 483 deletions
@@ -0,0 +1,19 @@
---
description: Adds Linked Mentions to all pages
tags: template
type: widget:bottom
where: 'true'
---
```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}}"
```
+9
View File
@@ -0,0 +1,9 @@
---
description: Adds a Table of Contents to all pages
tags: template
type: widget:top
where: 'true'
---
```toc
minHeaders: 3
```