Library

name New Book
type note(, split) template
action Book Tempkate

let pages = dv.pages('#book') .where(p => !p.file.name.includes("Template"))
 
let groups = pages.groupBy(p => p.status);
 
for (let group of groups){
	dv.header(2, group.key);
	dv.table(["Book", "Modified", "Subject"],
		group.rows
			.sort(b => b.mtime, 'asc')
			.map(b => [b.file.link, b.file.mday, b.subject])
			
	)
}
list link(rows.file.link, rows.book_recomendation) 
group by dateformat(file.day, "DDDD") as Date 
where any(rows.book_reccomendation) 
sort rows.file.ctime desc