const groups = dv.pages('#weread and -"Extras"').groupBy(p => { // 目前有小bug,自动手动上传的书,所做的笔记,会没有category字段,需要手动处理。 if (p.category != null){ p.category.split('-')[0] }})for (let group of groups) { dv.header(3, group.key); dv.table(["Name","author","publisher", "NoteCount"], group.rows .sort(k => k.noteCount, 'desc') .map(k => [k.file.link,k.author,k.publisher, k.noteCount]))}
画廊视图
table without id ("") as Cover,file.link as Name, author as Author,publisher,noteCount as NoteCountfrom #weread and -"Extras"sort NoteCount desc