Created
June 14, 2025 06:04
-
-
Save astro-jingtao/ba6808b48aa8fd5fcc0f66c8b77ef64f to your computer and use it in GitHub Desktop.
embed all files with given tag by dataviewjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let current = dv.current().file.name | |
let query = `LIST WITHOUT ID file.name WHERE contains(file.etags, "#框架构图") SORT length(file.inlinks) DESC` | |
let response = await dv.query(query) | |
let items = response.value.values | |
let embeds = items.map(x => `![[${x}]]`) | |
dv.paragraph(embeds.join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment