Aetherinox revised this gist . Go to revision
No changes
Aetherinox revised this gist . Go to revision
1 file changed, 17 insertions
obsidian_demo.js(file created)
@@ -0,0 +1,17 @@ | |||
1 | + | const arrPages = obj.pages; | |
2 | + | ||
3 | + | html += "\n<details><summary>" + obj.name + "</summary>\n\n"; | |
4 | + | ||
5 | + | Promise.all( arrPages.map( async ( pages ) => | |
6 | + | { | |
7 | + | const page_path = pages.path; | |
8 | + | const page_name = pages.name; | |
9 | + | const page_label = pages.label; | |
10 | + | ||
11 | + | const file_link = dv.fileLink( page_path, false, page_label ); | |
12 | + | ||
13 | + | html += "- " + file_link + "\n"; | |
14 | + | } | |
15 | + | )); | |
16 | + | ||
17 | + | html += "</details>\n"; |
Newer
Older