This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| // Cycle through all notes in the named folder and explicitly | |
| // disable publishing | |
| const folder = await tp.system.prompt("Root folder to unpublish (case sensitive)") | |
| let filesUnpublished = 0 | |
| let totalFiles = 0 | |
| new Notice("Beginning unpublish") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| // Cycle through all notes in the named folder and explicitly | |
| // enable publishing | |
| const folder = await tp.system.prompt("Root folder to publish (case sensitive)") | |
| let filesPublished = 0 | |
| let totalFiles = 0 | |
| new Notice("Beginning publish") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| // Sets the publish flag so that the note can be IS NOT published on the site | |
| // true = publish | |
| // false or empty = filter out | |
| // | |
| // Needs an explicit action to set. Only in the case of [[blog_]] is it set | |
| // automatically | |
| (async function() { | |
| var date = moment().local(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| // Sets the publish flag so that the note can be published on the site | |
| // true = publish | |
| // false or empty = filter out | |
| // | |
| // Needs an explicit action to set. Only in the case of [[blog_]] is it set | |
| // automatically | |
| (async function() { | |
| var date = moment().local(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| (async function() { | |
| var date = moment().local(); | |
| const file = tp.file.find_tfile(tp.file.path(true)); | |
| await app.fileManager.processFrontMatter(file, async (frontmatter) => { | |
| let allSurnames = ''; | |
| let title = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```dataviewjs | |
| let pg = dv.current(); | |
| dv.paragraph("---") | |
| dv.header(2, "Items to discuss with " + pg.file.name) | |
| dv.taskList(dv.pages().file.tasks | |
| .where(t => !t.completed && t.text.includes('#agenda') && t.text.includes(pg.file.name))); | |
| dv.paragraph("---") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```dataviewjs | |
| let pg = dv.current(); | |
| dv.header(2, "Projects") | |
| dv.paragraph("") | |
| const activeprojects = dv.pages("#project and #state/active") | |
| .where(p => dv.array(p.entity).includes(pg.file.link)) | |
| if(activeprojects.length > 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```dataviewjs | |
| let pg = dv.current(); | |
| const meetings = dv.pages("#meeting-note") | |
| .where(p => p.file.name != "meeting") | |
| .where(p => dv.func.dateformat(p.datetime,"yyyy-MM") == pg.file.name); | |
| if(meetings.length > 0) { | |
| dv.header(2,"Meetings Held") |