mirror of
https://github.com/bramses/bramses-highly-opinionated-vault-2023.git
synced 2025-02-26 07:53:55 +00:00
vault backup: 2022-12-17 17:29:16
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
---
|
||||
tags:
|
||||
aliases: [Resources]
|
||||
tags: []
|
||||
title: Resources
|
||||
date created: Sunday, December 11th 2022, 1:55:45 am
|
||||
date modified: Wednesday, December 14th 2022, 3:33:55 pm
|
||||
date modified: Saturday, December 17th 2022, 4:59:55 pm
|
||||
linter-yaml-title-alias: Resources
|
||||
---
|
||||
|
||||
```dataview
|
||||
@@ -10,3 +12,16 @@ list
|
||||
where contains(projects, "Test Project 2")
|
||||
```
|
||||
|
||||
>[!info]
|
||||
> The following code block allows you to "freeze" the Dataview query result above into HTML.
|
||||
> If you use Obsidian Publish, this will allow you to publish the resource list as it is above.
|
||||
> I recommend running this, **after** you finish a project and are ready to commit it to _PARA/Archive.
|
||||
> To use: open command pallette, remove the spaces between < % and *, run "Templater: Replace all templates in Active File", and remove the triple backticks.
|
||||
|
||||
```
|
||||
<%*
|
||||
const dv = this.app.plugins.plugins["dataview"].api ;
|
||||
const arr = await dv.queryMarkdown(`LIST where contains(projects, "Test Project 2")`)
|
||||
tR += arr.value
|
||||
%>
|
||||
```
|
||||
|
||||
@@ -1,11 +1,27 @@
|
||||
---
|
||||
tags:
|
||||
aliases: [Resources]
|
||||
tags: []
|
||||
title: Resources
|
||||
date created: Sunday, December 11th 2022, 1:55:37 am
|
||||
date modified: Wednesday, December 14th 2022, 3:33:55 pm
|
||||
date modified: Saturday, December 17th 2022, 4:59:43 pm
|
||||
linter-yaml-title-alias: Resources
|
||||
---
|
||||
|
||||
```dataview
|
||||
list
|
||||
where contains(projects, "Test Project")
|
||||
```
|
||||
```
|
||||
|
||||
>[!info]
|
||||
> The following code block allows you to "freeze" the Dataview query result above into HTML.
|
||||
> If you use Obsidian Publish, this will allow you to publish the resource list as it is above.
|
||||
> I recommend running this, **after** you finish a project and are ready to commit it to _PARA/Archive.
|
||||
> To use: open command pallette, remove the spaces between < % and *, run "Templater: Replace all templates in Active File", and remove the triple backticks.
|
||||
|
||||
```
|
||||
<%*
|
||||
const dv = this.app.plugins.plugins["dataview"].api ;
|
||||
const arr = await dv.queryMarkdown(`LIST where contains(projects, "Test Project")`)
|
||||
tR += arr.value
|
||||
%>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user