Respecting shouldInstallPlugins flag in front matter
This commit is contained in:
@@ -103,6 +103,12 @@ static IReadOnlyCollection<string> ScanDocTargets(string docsRoot)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!frontMatter.TryGetValue("shouldInstallPlugins", out var shouldInstallValue) ||
|
||||
!string.Equals(shouldInstallValue.Trim(), "true", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!frontMatter.TryGetValue("path", out var pathValue) || string.IsNullOrWhiteSpace(pathValue))
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
---
|
||||
category: docs
|
||||
path: Obsidian-Plugins\op.docs
|
||||
shouldInstallPlugins: true
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user