Large "query" plug refactor into "directive"

This commit is contained in:
Zef Hemel
2022-10-28 16:17:40 +02:00
parent 366564f2ec
commit 540af411a0
47 changed files with 1000 additions and 870 deletions
+4
View File
@@ -0,0 +1,4 @@
{{#each .}}
{{@key}}: {{.}}
{{/each}}
---
+1 -1
View File
@@ -1 +1 @@
- [[{{name}}]] by **{{author}}** ([repo]({{repo}}))
* [[{{name}}]] by **{{author}}** ([repo]({{repo}}))
+7
View File
@@ -0,0 +1,7 @@
---
$disableDirectives: true
---
<!-- #query task where tags = "{{.}}" and done = false render [[template/task]] -->
<!-- /query -->
+1
View File
@@ -0,0 +1 @@
* [{{#if done}}x{{else}} {{/if}}] [[{{page}}@{{pos}}]] {{name}} {{#if deadline}}📅 {{deadline}}{{/if}} {{#each tags}}{{.}} {{/each}}
-3
View File
@@ -1,3 +0,0 @@
{{#each .}}
- [{{#if done}}x{{else}} {{/if}}] [[{{page}}@{{pos}}]] {{name}} {{/each}}