We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4df713 commit 6d4f964Copy full SHA for 6d4f964
Library/Std/Query Templates.md
@@ -27,6 +27,11 @@ templates.itemItem = template.new([==[
27
templates.paragraphItem = template.new([==[
28
* [[${ref}]] ${text}
29
]==])
30
+
31
+-- Renders a tag object
32
+templates.tagItem = template.new([==[
33
+* [[tag:${name}|#${name}]]
34
+]==])
35
```
36
37
@@ -45,3 +50,10 @@ ${template.each(query[[from index.tag "task" where page == _CTX.currentPage.name
45
50
* Item 2
46
51
47
52
${template.each(query[[from index.tag "item" where page == _CTX.currentPage.name]], templates.itemItem)}
53
54
+`template.tagItem`:
55
+* #tag1
56
+* #tag2
57
+* #tag3
58
59
+${template.each(query[[from index.tag "tag" where page == _CTX.currentPage.name]], templates.tagItem)}
0 commit comments