Update:
I’m wrong to assume that template is not live queried. Actually it works as a live queried example. It’s just amazing how extensible the Silverbullet is, even for people like me with minimal JavaScript knowledge. Shout out to zef’s great work.
Below is the outcome:
And you can see this code snippet that works for the case I showed above:
**Time spent on Main Task**: {{sum("duration", {paragraph where page = @page.name and tags = 'timetrack' and tags = 'main'})}} mins
**Other**: {{sum("duration", {paragraph where page = @page.name and tags = 'timetrack' and tags != 'main'})}} mins
I hope this would help people who wants to achieve similar functionalities in the future.
