Skip to content

Instantly share code, notes, and snippets.

@zamuz
Last active July 7, 2025 21:46
Show Gist options
  • Save zamuz/7b8a80c32384808063ddb78de460dd64 to your computer and use it in GitHub Desktop.
Save zamuz/7b8a80c32384808063ddb78de460dd64 to your computer and use it in GitHub Desktop.
Index page for silverbullet.md instances
# TAGS

{{#each {tag select name where parent != "builtin" order by name}}}
_[[πŸ“Œ {{name}}|#{{name}}({{tagCount(name)}})]]_ {{/each}}
# TASKS

{{#let @pages = {task select page where not done and itags != "nic" and itags != "meta"}}}
{{#if @pages}}
{{#each @p in @pages}}
**[[{{@p.page}}]]**{{#each {tag where page = @p.page}}} _[[πŸ“Œ {{name}}|#{{name}}]]_{{/each}} 
{{#each {task where page = @p.page and not done order by pos asc}}}
- {{text}}
{{/each}}

{{/each}}
{{else}}
_All done._
{{/if}}
{{/let}}
# LATEST
[[All pages|Show all ({{tagCount("page")}})]]

{{#each {page where tags != "template" and tags != "nic" and tags != "meta" order by created desc limit 15}}}
### [[{{name}}]]
  _{{niceDate(created)}}{{#each tags}} [[πŸ“Œ {{.}}|#{{.}}]]{{/each}}_ 

{{/each}}
@dhemasnurjaya
Copy link

dhemasnurjaya commented Jun 27, 2025

@zamuz can you update this to work with Silverbullet v2? thanks!

@zamuz
Copy link
Author

zamuz commented Jul 7, 2025

I tried to update it for Silverbullet v2 but the move to Lua has proven a bit too involved for me. I'm still on Silverbullet v1 for the foreseeable future. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment