const columns = ['Index', 'Problem name', 'Hint']; // More options: 'Url',
// all problem with value [complexity:: medium] should appear first
let tag = '#Blind_75';
let pages = DataviewAPI.pages(tag);
function removeTag(tags, tagToRemove) {
const newTags = [];
tags.forEach((tag) => {
if (tag !== tagToRemove) {
newTags.push(tag)
};
});
return newTags;
}
let index = 0;
let pageNameandTags = pages
.sort( page => page.file.name)
.filter( page => page.hint && (page.hint != 'place'))
.map(page => {
index++;
return [index, page.file.link, page.hint]
}); // More options: page.url,
// for tags return this in map above as last parameter, , removeTag(page.file.tags, tag)
dv.table(columns,
pageNameandTags);