This gist contains templates that will query all mentions (ingoing links). You can use it as a MOC template. Required plugins:
- Obsidian Dataview
- Obsidian Templater
TABLE file.cday as "Creation Date"
FROM [[<% tp.file.title %>]]
WHERE contains(this.file.outlinks, file.link) = false
SORT file.name
function getFirstChar(page) {
return page.file.name[0]
}
const source = dv.pages("[[<% tp.file.title %>]]")
.groupBy(getFirstChar);
for (let group of source) {
// use markdown heading 3 (###) for header
dv.header(3, `${group.key} (${group.rows.length})`);
// list version
const listRows = group.rows.map(k => k.file.link);
dv.list(listRows);
}